Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17616] iOS: Child views showing as visible when outside parent bounds

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-11-27T05:46:10.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 3.4.2, Release 3.5.0, Release 4.0.0
ComponentsiOS
LabelsTCSupport, ios, module_view, qe-manualtest, view
Reporternicolomonili
AssigneeVishal Duggal
Created2014-08-07T13:17:43.000+0000
Updated2014-11-27T05:46:10.000+0000

Description

Problem Description

There is a change of how we make objects visible with 3.3.0.GA *VIEW A* [width 30 - height 30] *VIEW B* [width 30 - height 30 - left 30] - With SDK <= *3.2.3.GA* if i add the *VIEW B* to *VIEW A* , the *VIEW B* is not visible [CORRECT] - With SDK *3.3.0.GA* if i add the *VIEW B* to *VIEW A* , the *VIEW B* is visible [NOT CORRECT]

Steps to Reproduce

- Create a new mobile project (Classic Titanium) - Replace app.js content with this:
var win = Ti.UI.createWindow({
    backgroundColor : 'white',
    fullscreen : true
});


var view_1 = Ti.UI.createView({
   width : 30,
   height : 30,
   backgroundColor : "red"
});

var view_2 = Ti.UI.createView({
    width : 30,
    height : 30,
    backgroundColor : "green",
    left : 30
});

win.add(view_1);
view_1.add(view_2);

win.open();
- Run the test code with 3.2.3GA SDK - Run the test code with 3.3.0GA SDK

Attachments

FileDateSize
Schermata 2014-08-07 alle 14.57.54.png2014-08-07T13:21:14.000+000034350
Schermata 2014-08-07 alle 14.58.30.png2014-08-07T13:21:14.000+000031652

Comments

  1. nicolomonili 2014-08-18

    no one has yet performed some test?
  2. nicolomonili 2014-09-30

    the bug persist on 3.4.0.GA
  3. Ingo Muschenetz 2014-09-30

    I believe this may be related to either TIMOB-13294 or TIMOB-17166. Thoughts?
  4. nicolomonili 2014-09-30

    so there is no solution?
  5. Ingo Muschenetz 2014-09-30

    I am curious if adding the clip properties as mentioned in those tickets fixes the issue.
  6. nicolomonili 2014-09-30

    this work
       clipMode : Ti.UI.iOS.CLIP_MODE_ENABLED
       
  7. nicolomonili 2014-09-30

    a solution also for this TIMOB-17466 ? thanks @Ingo Muschenetz for the help
  8. Vishal Duggal 2014-10-14

    Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6221 3_4_X - https://github.com/appcelerator/titanium_mobile/pull/6222
  9. Kajenthiran Velummaylum 2014-11-26

    Verified the Fix as it's working fine in following environment. Hence closing the ticket Test Environment: Titanium SDK: 3.5.0.v20141125154115 Appc-Studio: 3.4.1 GA Titanium CLI: 3.4.1 GA Alloy : 1.5.1 GA Xcode : 6.1 OS: OSX 10.10.1 Device : iPhone 6plus (iOS 8.1)

JSON Source