Search code examples
appmobi

appMobi XDK simulated device orientation change


Is the content rendered in appMobi's device emulator supposed to respond (in the emulator) to simulated orientation changes? Mine doesn't, and I'm wondering if that's a problem with my installation or whether that level of sophistication is not (yet) available in the emulator.


Solution

  • The XDK should throw an "appMobi.device.orientation.change" Javascript event when the simulated orientation changes. Any other rendering changes would depend on how your HTML is structured. Do you see that event?

    Make sure to use the "Rotate Orientation" button rather than simply rotating the application using the accelerometer controls. enter image description here