[TIMOB-1312] Vertical layout is broken in popovers
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | 3.2, defect, ios, ipad, layout, os, vertical |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T02:49:08.000+0000 |
Updated | 2011-04-17T01:55:49.000+0000 |
Description
A customer reported that setting a view's layout to vertical is broken when the view is used in a popover. The following code shows the behavior. I tested this with 3.2 & 4 with latest from HEAD.
var win = Titanium.UI.createWindow({backgroundColor:
'white'});
function makeView(){
var container = Ti.UI.createView({height: 200, width:280, layout: 'vertical', backgroundColor: 'green'}),
agreeBtn = Ti.UI.createView({
width: 280,
height: 45,
top: 10,
backgroundColor: 'red'
}),
usefulBtn = Ti.UI.createView({
width: 280,
height: 45,
top: 10,
backgroundColor: 'blue'
}),
funnyBtn = Ti.UI.createView({
width: 280,
height: 45,
top: 10,
backgroundColor: 'purple'
});
container.add(agreeBtn);
container.add(usefulBtn);
container.add(funnyBtn);
return container
}
var view1 = makeView(),
view2 = makeView();
win.add(view1);
var openButton = Ti.UI.createButton({ bottom: 10, height: 40,
width: 200, title:'open popover'});
openButton.addEventListener('click', function(){
var popover = Ti.UI.iPad.createPopover({height:200,width:280});
popover.add(view2);
popover.show({view: openButton});
}) win.add(openButton);
win.open();
confirmed fixed on 1.4.1.aff269
valid, needs testcase