[AC-3146] window.barImage does not get updated on orientation change
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-05-18T15:40:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | ios, navbar |
Reporter | Mitchell Amihod |
Assignee | Shak Hossain |
Created | 2012-05-16T06:22:47.000+0000 |
Updated | 2016-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
Closing this issue. more or less resolved by https://github.com/appcelerator/titanium_mobile/pull/2200/commits
err... i can't close it... so if someone else could :D