Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9083] iOS: barImage does not resize as per the orientation

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-05-17T14:14:59.000+0000
Affected Version/sRelease 2.0.0, Release 1.8.2
Fix Version/sRelease 2.0.2, Release 2.1.0, Sprint 2012-10 API
ComponentsiOS
Labelsapi, module_navbar, qe-testadded
ReporterVarun Joshi
AssigneeVishal Duggal
Created2012-05-09T14:52:57.000+0000
Updated2012-07-20T14:11:56.000+0000

Description

Problem and Steps to Reproduce

Start the image in iPad/iPhone simulator. The barImage added to a window looks fine in portrait mode when the app starts, but when changing the orientation to landscape, the barImage that shows is still of the portrait size. However, if the tabs are switched in landscape mode the barImage looks fine. Then, if we go back to portrait the image isn't scaled right again until the tabs are switched again. Please find attached the sample code.

Expected Behavior

The barImage should scale according to the orientation.

Attachments

FileDateSize
NavBar.zip2012-05-09T14:52:57.000+00003189729

Comments

  1. Max Stepanov 2012-05-17

    PR merged https://github.com/appcelerator/titanium_mobile/pull/2200
  2. Natalie Huynh 2012-05-18

    Tested with 2.0.2.v20120517153200 on iPhone 4s 5.1

JSON Source