[2.2] Ext.Viewport.getOrientation() reports wrong value on BlackBerry 10
Sencha Touch version tested:OS tested against:DOCTYPE tested against:Description:
Steps to reproduce the problem:
- 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.
The result that was expected:
- Catch the resize event inside a dataview and print the value of Ext.Viewport.getOrientation() on-screen
The result that occurs instead:
- The message on screen should show the value matching the device's orientation
- It seems the value is always one step behind.