Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3146] window.barImage does not get updated on orientation change

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2012-05-18T15:40:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsios, navbar
ReporterMitchell Amihod
AssigneeShak Hossain
Created2012-05-16T06:22:47.000+0000
Updated2016-03-08T07:48:13.000+0000

Description

problem: window.barImage does not get updated when device orientation changes. This leads to navBar barImage wrong on orientation change. Please see attached images. one piece of solution: In TiUIWindowProxy willAnimateRotationToInterfaceOrientation call [self updateBarImage]. This will force the recalc of the barImage (if it exists) so that it is redrawn correctly. I suspect there's more going on that just that one call, so just offering it as a place to start. Its beyond me right now to come up with fully robust fix, but the problem itself definitely exists.

Attachments

FileDateSize
barImage-afterOrientationChange.png2012-05-16T06:22:47.000+0000111678
barImage-beforeOrientationChange.png2012-05-16T06:22:47.000+0000114053

Comments

  1. Mitchell Amihod 2012-05-17

    Closing this issue. more or less resolved by https://github.com/appcelerator/titanium_mobile/pull/2200/commits
  2. Mitchell Amihod 2012-05-17

    err... i can't close it... so if someone else could :D

JSON Source