[TIMOB-5501] MobileWeb: Tab has height == 0 when it is not defined in the source code
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-09-06T02:15:32.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Release 1.7.2 |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Andrew Kulinich |
Created | 2011-08-26T06:41:26.000+0000 |
Updated | 2017-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);
Closing ticket.