Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10792] MobileWeb: Ti.UI.Window 'orientationchange' event

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-15T17:42:51.000+0000
Affected Version/sRelease 2.1.2
Fix Version/sn/a
ComponentsMobileWeb
Labelsapi
ReporterBlain Hamon
AssigneeEric Merriman
Created2012-09-05T18:54:45.000+0000
Updated2017-06-15T17:42:51.000+0000

Description

In Titanium, there exists a Ti.Gesture.orientation property, and a corresponding orientationchange event for when it changes. There also exists (on Android, soon to be on iOS) a Ti.UI.Window.orientation property. Unfortunately, devs still rely on Ti.Gesture for orientationchange events, which does not reflect the window's orientation. This is a new event, which should trigger after a change in the UI's orientation has begun. This event can happen before, during, or after the animation, as long as the window's orientation and dimensions reflect the state that will exist after the animation. The event may or may not fire while the window is offscreen, and may or may not reflect the onscreen window's orientation. It is also possible that the event is for an orientation mode not requested by the end developer (There are edge cases where the OS will cause this to happen). The event should have one property, orientation, that reflects the window's new orientation.

Comments

  1. Lee Morris 2017-06-15

    Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.

JSON Source