Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1312] Vertical layout is broken in popovers

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:49.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labels3.2, defect, ios, ipad, layout, os, vertical
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T02:49:08.000+0000
Updated2011-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();

Comments

  1. Thomas Huelbert 2011-04-15

    confirmed fixed on 1.4.1.aff269

    valid, needs testcase

JSON Source