27 Feb 2013 12:29 PM #1
[2.2] Ext.Viewport.getOrientation() reports wrong value on BlackBerry 10
Sencha Touch version tested:
- BlackBerry 10
- Components like dataview don't listen to events like "orientationchange", so we're relying on the resize event to be able to trigger a test that will determine the device's orientation.
Unfortunately, the value reported by Ext.Viewport.getOrientation() is not accurate on BlackBerry 10. It could be because the value is defined too late or because using resize is not the proper way of doing it.
- Catch the resize event inside a dataview and print the value of Ext.Viewport.getOrientation() on-screen
- The message on screen should show the value matching the device's orientation
- It seems the value is always one step behind.
Last edited by interfasys; 27 Feb 2013 at 12:31 PM. Reason: typoOlivier - interfaSys
Developing custom solutions for BlackBerry 10 using Sencha Touch.