How can I support multiple devices (iPhone & iPad) and multiple orientations (portrait & landscape) in a single script (that displays a table with multiple columns/rows)?
I know I can use Device to detect the configuration at start, but how can I handle an orientation change when the user rotates the device 90 degrees?
(If I’m lucky I can support both orientations for iPad and iPhone landscape in a single layout, but I’ll have to remove columns for iPhone portrait)
I was assuming from what @rob said that this didn’t work after the inital run. But calling the other worked when it was called later at first run of the WebView in the script. I can’t say I tried the device orientation afterwards as it sounded like that had already been checked.
There is no event to subscribe to device rotation. Maybe @simonbs will implement it someday… But it should be possible in the WebView at least, but I don’t know how.