If you can make only one wish, which bug you want Corona to fix first?

If you can make only one wish, which bug you want Corona to fix first?

My wish is this one…

When I rotate a webView and modify its height & width (in order to support device orientation), webView does not show correctly - Case #30097

It’s interesting (& informational) to know yours… mind to make a wish and share? :slight_smile:

I was looking at a different issue tonight, but it involved a webView and rotating.  On Android devices (and possibly iOS), it’s calculating the new content area by adding the height of the status bar to the long side when rotating from portrait to landscape instead of taking the height of the nav bar out of the short side.  This causes the actualContentWidth to increase instead of the actualContentHeight to decrease.  The net result is that 0, 0 is (on my Nexus 7) 37 pixels too far to the right.  A simple:

  webview.x = display.contentCenterX + display.screenOriginX

should address it, if it’s the same issue.  I’m working with engineering to see if this is the way we should handle this content area change, but at least in this case we have a work around.

Rob

There are a lot to test with for webView orientation.

  • actual iOS, actual Android (they behaved differently)

  • try play a video in the webView in full screen, rotate, don’t rotate back, end the video

Why not write a tutorial about webView orientation for your next subject?

I was looking at a different issue tonight, but it involved a webView and rotating.  On Android devices (and possibly iOS), it’s calculating the new content area by adding the height of the status bar to the long side when rotating from portrait to landscape instead of taking the height of the nav bar out of the short side.  This causes the actualContentWidth to increase instead of the actualContentHeight to decrease.  The net result is that 0, 0 is (on my Nexus 7) 37 pixels too far to the right.  A simple:

  webview.x = display.contentCenterX + display.screenOriginX

should address it, if it’s the same issue.  I’m working with engineering to see if this is the way we should handle this content area change, but at least in this case we have a work around.

Rob

There are a lot to test with for webView orientation.

  • actual iOS, actual Android (they behaved differently)

  • try play a video in the webView in full screen, rotate, don’t rotate back, end the video

Why not write a tutorial about webView orientation for your next subject?