Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-956] Toggling views in landscape mode screws up if statusbar toggled too

GitHub Issuen/a
Resolution Date2011-04-17T01:54:47.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
Labelsios, iphone, statusbar
ReporterDamien Elmes
AssigneeReggie Seagraves


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.


  1. Damien Elmes 2011-04-15

    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.

  2. Stephen Tramer 2011-04-15

    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?

  3. Damien Elmes 2011-04-15

    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.

  4. Stephen Tramer 2011-04-15

    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?

  5. Damien Elmes 2011-04-15

    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

  6. Damien Elmes 2011-04-15

    Just tried dropping the code into a new project, same problem

  7. Stephen Tramer 2011-04-15

    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.

  8. Jeff Haynie 2011-04-15

    (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...

JSON Source