[TIMOB-956] Toggling views in landscape mode screws up if statusbar toggled too
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | ios, iphone, statusbar |
Reporter | Damien Elmes |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:40:11.000+0000 |
Updated | 2011-04-17T01:54:47.000+0000 |
Description
Drop the following code into app.js: http://pastebin.com/7wszjAev">http://pastebin.com/7wszjAev
In portrait mode, notice how going back and forth works fine. If you then go to landscape mode and click a button, everything is messed up.
I tried to work around this with a timer, updating the statusbar a few seconds after the window had been redrawn, but the same problem occurs.
I'm not seeing it; there's an issue where the view resizes before the status bar animation is complete, and it looks kind of ugly, but the UI doesn't get screwed up. We may not have control over the view resizing, I'll look into it.
In 1.3.0 there was a brief period in the animation where there was a big white block visible. Is this what you're referring to?
Really? I just tried again with 1.3.1 pulled from master yesterday, and it's still a problem. I change the simulator to landscape mode, press the button once, and the new button is displayed with the right hand side outside the page. Click again, and the whole window goes blank.
Can you tell me if you're testing on simulator or device, which OS you've built for, and which OS is running on device?
osx 10.6 / latest apple xcode
same problem targeting iphone sdk 3.1 and 3.1.3
reproducible for me on mobilesdk 1.2, 1.3, 1.3.1
both in simulator and 1g touch
Just tried dropping the code into a new project, same problem
Under 3.2/4.0 there's no issue. This might be Apple's problem. Will see if I can duplicate under 3.1.x and if there's anything we can do about it.
(from [9556512c916bdd3ef44125ff8ad09b6ab8cb4a48]) Closes #956: Subviews of the root view are repositioned on status bar toggle. -[UIScreen applicationFrame] used to always return the portrait mode frame. http://github.com/appcelerator/titanium_mobile/commit/9556512c916bdd3ef44125ff8ad09b6ab8cb4a48"> http://github.com/appcelerator/titanium_mobile/commit/9556512c916bd...