Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-950] web views in vertical layout with height:auto on iPad don't stack

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:46.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsios, ipad, vertical, vertical_layout
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:39:58.000+0000
Updated2011-04-17T01:54:46.000+0000

Description

code:

var w = Ti.UI.createWindow();

var v = Ti.UI.createView({

layout:'vertical'

}); w.add(v);

var colors = ['red','blue', 'green'];
for (var i=0;i<4;i++)
{

var wv = Ti.UI.createWebView({
    height:'auto',
    backgroundColor:colors[i],
    html:'<html><body>I am a web view</body></html>'
});

v.add(wv);

}

w.open();

Comments

  1. Jeff Haynie 2011-04-15

    (from [bdff5d81268525053100bf0700bca96b6240919d]) Minor optimization to LayoutQueue, LayoutChildrenIfNeeded now does a proper check of the bit by using the atomic function instead of simple bitwise. Closes #950 http://github.com/appcelerator/titanium_mobile/commit/bdff5d81268525053100bf0700bca96b6240919d"> http://github.com/appcelerator/titanium_mobile/commit/bdff5d8126852...

JSON Source