Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25222] Android: Nested views with Ti.UI.FILL in width/height is not visible

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-09-07T01:21:19.000+0000
Affected Version/sRelease 6.2.0
Fix Version/sRelease 6.2.0
ComponentsAndroid
Labelsandroid, automated, layout
ReporterMichael Gangolf
AssigneeGary Mathews
Created2017-09-01T23:26:03.000+0000
Updated2017-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

FileDateSize
correct.png2017-09-01T23:25:20.000+000067982
wrong.png2017-09-01T23:25:20.000+000054074

Comments

  1. Gary Mathews 2017-09-05

    This will be fixed by TIMOB-25223 [#9397](https://github.com/appcelerator/titanium_mobile/pull/9397)
  2. Lokesh Choudhary 2017-09-07

    FR Passed, PR's merged in TIMOB-25223
  3. Lokesh Choudhary 2017-09-07

    Closing as TIMOB-25223 is resolved & closed.

JSON Source