Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5501] MobileWeb: Tab has height == 0 when it is not defined in the source code

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-09-06T02:15:32.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sRelease 1.7.2
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeAndrew Kulinich
Created2011-08-26T06:41:26.000+0000
Updated2017-03-03T22:35:07.000+0000

Description

Tab has height == 0 when it is not defined in the source code. Objects which are added to the Tab appear outside the tab. Example: switch to the Tab 2.
var win = Ti.UI.createWindow();
win.open();
var tg = Ti.UI.createTabGroup({});
win.add(tg);
var tab1 = Ti.UI.createTab({
	title: "tab 1",
	width:200,
});
tg.addTab(tab1);

var l1 = Ti.UI.createLabel({
	text: "this is tab 1",
	left: 100,
	top: 100
});

tab1.add(l1);

var tab2 = Ti.UI.createTab({
	title: "tab 2",
	backgroundColor:'green',
	height: 100,
});
tg.addTab(tab2);


var l2 = Ti.UI.createLabel({
	text: "this is tab 2",
	left: 200,
	top: 200,
	backgroundColor:'red'
});
tab2.add(l2);


var tab3 = Ti.UI.createTab({
	title: "tab 3",
	width:100,
});
tg.addTab(tab3);


var l3 = Ti.UI.createLabel({
	text: "this is tab 3",
	left: 300,
	top: 300
});
tab3.add(l3);

Comments

  1. Lee Morris 2017-03-03

    Closing ticket.

JSON Source