Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7675] Parent window size incorrect during open event in iOS

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-07-10T22:05:27.000+0000
Affected Version/sRelease 1.8.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterCarl Orthlieb
AssigneeEric Merriman
Created2012-02-15T15:12:36.000+0000
Updated2017-07-10T22:05:27.000+0000

Description

1. Launch the sample app in the iOS simulator 2. Rotate the window 90 degrees right 3. Rotate the window 90 degrees left 4. Examine the console output: [INFO] CONSTRUCTION Parent Window Size (w:320 h: 460) [INFO] OPEN EVENT Parent Window Size (w:320 h: 416) [INFO] ORIENTATION CHANGE Parent Window Size (w:480 h: 300) [INFO] ORIENTATION CHANGE Parent Window Size (w:320 h: 460) EXPECTED: All window sizes should be the same (accounting for orientation) ACTUAL: During the open event the window height is smaller by 44 pixels (navbar?)

Attachments

FileDateSize
BugTest.zip2012-02-15T15:12:36.000+00001586959
Screen Shot 2012-02-15 at 2.58.52 PM.png2012-02-15T15:12:36.000+0000108517
Screen Shot 2012-02-15 at 2.59.34 PM.png2012-02-15T15:12:36.000+0000110385
Screen Shot 2012-02-15 at 2.59.48 PM.png2012-02-15T15:12:36.000+0000111709

Comments

  1. Carl Orthlieb 2012-02-15

    Note that there is an additional side effect/bug here related to the origin of the window. At construction time, the y axis of origin is offset by the NavBar height. After subsequent rotations the origin does not take into account the height of the NavBar. You can see this from position of the label in the first and last screen shot. In both cases, the location of the label is fixed at the same point but displays differently.
  2. Lee Morris 2017-07-10

    Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.

JSON Source