ShowWebPopup Orientation Issue

Version - Corona BETA 8
Issue -

When build settings had the orientation set to Landscape. The showWebPopup brings up the popup correctly when the device is held horizontally. However, if you start the application holding the device vertically, then the showWebPopup brings up the popup in a strange perpendicular way, basically not showing up correctly in the right rotation.

This is not so much a big issue, but for ppl that likes playing games on their bed etc, this problem could occur. [import]uid: 6066 topic_id: 1930 reply_id: 301930[/import]

Are you talking about the auto rotation and webpopups? I found a problem with webpops when I developed the NativeDisplayObjects sample code (in Beta 8). If you open a webpopup and rotate the device, it’s not in the right place. Since you can’t currently reposition the webpopup, my only solution was to close the webpopup and open it again in the new orientation.

I have an open feature request to allow positioning webpopups like you can do on other display objects.

-Tom [import]uid: 7559 topic_id: 1930 reply_id: 5703[/import]

I think there’re something with it. I wanted to use webpopup in a project, in landscape mode, and position the popup in a given place, the black transparent overlay that with the loader anim appears in a wrong spot, but then the web page appears in the right place. [import]uid: 6046 topic_id: 1930 reply_id: 5720[/import]

In the next release the loader anim has been fixed and a gray background is shown while the webpopup is loading the page.

-Tom [import]uid: 7559 topic_id: 1930 reply_id: 5724[/import]

Thanks Tom.
Just one thing,
Please do some test on the iPad in landscape, positioning, loading, closing it (cancelWebPopup), etc… It’s very unstable!
[import]uid: 6046 topic_id: 1930 reply_id: 5725[/import]

Are you seeing this with dynamic scaling (in config.lua) or running without a config.lua file? What is in your build.settings file?

We are working out some iPad dynamic scaling issues in landscape mode so I’m wondering if this is related.

-Tom [import]uid: 7559 topic_id: 1930 reply_id: 5734[/import]

No scalling. Thanks for your effort. [import]uid: 6046 topic_id: 1930 reply_id: 5735[/import]

Yes, toms Issue is one thing. The loading icon is a bit funny positioned.

But the thing I was talking about is really auto - orientation, that works fine anyway except for the issue you mentioned earlier for the sample code beta8.

I will clarify my problem. This is how you reproduce it.

  1. Make an app and set landscapeMode left or right inside build settings.
  2. Then set scale mode to letterbox in config.lua
  3. Now quit application, hold the device horizontally in landscapeMode, then start the app, then do the showWebpop and the content will load up properly (except for the spinning circle’s position), auto orientation also works fine.
  4. Now quit application, hold the device vertically and then start the app, then do the showWebpopup, u will see that the content will load up in a vertical way somewhere in the middle of the screen, when you try to cancel, reopen, turn the device, none will fix up the issue in the running session until you quit the app and go do 3 again.

[import]uid: 6066 topic_id: 1930 reply_id: 5740[/import]

Tom,
You mentioned finding a problem in the NativeDisplayObjects sample code. Perhaps this problem could also be affecting text fields as well. I built an app that only uses landscape orientation and text fields can’t seem to find the correct orientation. I filed a bug report (1958). [import]uid: 8194 topic_id: 1930 reply_id: 5869[/import]

@dknell,

Yes, I was able to reproduce your problem with iPhone 4 – iPhone 3 and iPad didn’t show the problem. Starting the native objects (textField, textBox, and showWebPopup), in landscape mode causes the object to show up in portrait mode (most of the time).

@fdi777,
If you are talking about the showWebPopup activity indicator being off to the side, I believe we fixed that in the next release. Are you seeing the the problems on ios 4? Does it happen on ios3 or 3.2 (iPad)?

I did some testing and the orientation messages send by each OS is different and is not always consistence, which I think is why we are seeing different results from one run to another.

In the future, stating the device and IOS version would be very helpful in tracking down these problems.

Thanks,
-Tom

-Tom [import]uid: 7559 topic_id: 1930 reply_id: 5873[/import]

Hey,

I am not talking about the indicator. You can test my new game RocketCup. Goto the ranking section, which uses showWebPopup and you should be able to reproduce the problem.

Yeh, my iphone is 3GS, and the OS is iOS4 as mentioned earlier. [import]uid: 6066 topic_id: 1930 reply_id: 5904[/import]

Hi Tom. It was me who said the activity indicator appears in the wrong position. This happens on the iPad when you’re in landscape mode and you try to create a webpopup in an specified position.
Thanks. [import]uid: 6046 topic_id: 1930 reply_id: 5915[/import]

We fixed a few things in the new Corona 2.0 dealing with iPad and webpopup. Please test and report and report any problems.

Thanks,
-Tom [import]uid: 7559 topic_id: 1930 reply_id: 6097[/import]

Let me download it and test it out. [import]uid: 6066 topic_id: 1930 reply_id: 6105[/import]

Cool, I will test… Thanks [import]uid: 6046 topic_id: 1930 reply_id: 6116[/import]

Positioning works good now, but there’s another issue, the layer! I have an App with few layers (ok groups), some of them are created dynamically. When I show the popup for the first time, what I do is process all the “background” groups, then I show the popup, and it works, then I have this touch event on the bg frame group that releases these popup frame components, and one of them is the web popup that should be closed when I call native.cancelWebPopup(). But the problem is that everything is closed but doesn’t close the web popup! Not sure why, but it stay there… then when I press the button that should open the popup again, the frame appears, but the web popup doesn’t, some time it does, some it doesn’t. So I think there’s an issue with the layers (group) ordering that the popup maybe stay in the background some times, and cancelWebPopup is not working maybe because it’s still loading something? and that prevents the popup to released? not sure but it’s not working good… I am sending a little video by email to show this behavior… Thanks! [import]uid: 6046 topic_id: 1930 reply_id: 6192[/import]

The native objects (including showWebPopup) don’t respect layers and always show on top of Corona objects. I’m not sure why cancelWebPopup is not working for you. Check out the NativeDisplayObjects sample code (in the Conona SDK) which demos that feature.

-Tom [import]uid: 7559 topic_id: 1930 reply_id: 6219[/import]