[TIMOB-25222] Android: Nested views with Ti.UI.FILL in width/height is not visible
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-09-07T01:21:19.000+0000 |
Affected Version/s | Release 6.2.0 |
Fix Version/s | Release 6.2.0 |
Components | Android |
Labels | android, automated, layout |
Reporter | Michael Gangolf |
Assignee | Gary Mathews |
Created | 2017-09-01T23:26:03.000+0000 |
Updated | 2017-09-15T23:16:01.000+0000 |
Description
*Summary:*
Adding two views with width/height
Ti.UI.FILL
inside a view with fixed width/height only shows one view in 6.2.0.RC
*Expected*
Both images should be visible
*Workaround*
Set the inner views width/height to the outer view width/height.
*Code*
*correct* in 6.1.2.GA
*broken* in 6.2.0.RC
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var v1 = Ti.UI.createView({
width: 100,
height: 100,
borderWidth: 1,
borderColor: "#000"
});
var v3 = Ti.UI.createView({
width: Ti.UI.FILL,
height: Ti.UI.FILL,
backgroundImage: "assets/images/tab2.png"
})
var v2 = Ti.UI.createView({
width: Ti.UI.FILL,
height: Ti.UI.FILL,
backgroundImage: "assets/images/tab1.png"
})
v1.add(v3);
v1.add(v2);
win.add(v1);
win.open();
*Code (Work-Around)*
*correct* in 6.2.0.RC
*correct* in 6.1.2.GA
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var v1 = Ti.UI.createView({
width: 100,
height: 100,
borderWidth: 1,
borderColor: "#000"
});
var v3 = Ti.UI.createView({
width: 100,
height: 100,
backgroundImage: "assets/images/tab2.png"
})
var v2 = Ti.UI.createView({
width: 100,
height: 100,
backgroundImage: "assets/images/tab1.png"
})
v1.add(v2);
v1.add(v3);
win.add(v1);
win.open();
Attachments
File | Date | Size |
---|---|---|
correct.png | 2017-09-01T23:25:20.000+0000 | 67982 |
wrong.png | 2017-09-01T23:25:20.000+0000 | 54074 |
This will be fixed by TIMOB-25223 [#9397](https://github.com/appcelerator/titanium_mobile/pull/9397)
FR Passed, PR's merged in TIMOB-25223
Closing as TIMOB-25223 is resolved & closed.