Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6487] iOS: Popover - Popover window does not align properly when rotating on ipad only

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-30T15:53:40.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0.1
Fix Version/sSprint 2011-50, Release 2.0.0, Release 1.8.1
ComponentsiOS
Labelsparity, popover, qe-testadded
ReporterWilson Luu
AssigneeVishal Duggal
Created2011-12-06T12:55:37.000+0000
Updated2014-06-19T12:42:48.000+0000

Description

Steps to reproduce: 1. Copy the following code to a TiMob project:
var win = Titanium.UI.createWindow();
win.orientationModes = [
	Titanium.UI.PORTRAIT,
	Titanium.UI.UPSIDE_PORTRAIT,
	Titanium.UI.LANDSCAPE_LEFT,
	Titanium.UI.LANDSCAPE_RIGHT,
]; 

var b1 = Titanium.UI.createButton({
	title:'Show camera',
	width:200,
	height:40,
	top:40
});
b1.addEventListener('click', function()
{
	Titanium.Media.openPhotoGallery({
	
		success:function(event)
		{
			Ti.API.debug('Success!');		
		},
		cancel:function()
		{
		},
		allowEditing:true
	});
});
win.add(b1);

win.open();
2. Launch project in ipad 3. Click on button 4. Rotate ipad to landscape Result: Popover window is not aligned properly with the button. See attachment. Expected: Popover window should be aligned properly

Attachments

FileDateSize
Screenshot 2011.12.06 12.52.50.png2011-12-06T12:55:37.000+000044261

Comments

  1. Vishal Duggal 2011-12-12

    Pull pending #932
  2. Natalie Huynh 2012-01-12

    Tested with 1.9.0.v20120112104633 on iPad 2 4.3.5
  3. Michael Pettiford 2012-01-30

    Reopening/closing to add/remove labels

JSON Source