Enterprise : Problem with "display.contentWidth" and "display.contentHeight" values

Hi roaminggamer

thanks again for your help!

You’re absolutely right.

I will test like you said asap.

Olivier

I’m seeing the same in .2692. Worked fine on a previous release from around June 2014 (I can’t find a place within the Enterprise releases to identify which release it is.)

My app only allows landscape orientations.

When I run my code using the Pro Corona emulator with orientation set to landscapeRight, display.width x display.height on an iPad show as 1024x768. When I run the code in Enterprise on an iPad2, I get 768 x 1024.

On an iPhone 6 I do not see this reversal.

Also, in XCode, I’ve only allowed landscapeLeft and landscapeRight, however as I rotate the device from landscape to portrait, the app swivels to portrait (which my app doesn’t accomodate).

@tbuchler,

Thanks for posting.  This looks like a bug then.  If you guys are both seeing the same behavior independently in Enterprise, and I don’t see it for Pro builds, then I’d say its an Enterprise bug.  

One of you two should file a bug report: 

https://developer.coronalabs.com/content/bug-submission

PS - I was really hoping this was just something we could figure out and fix.

Just submitted report

Please post the bug Case ID here for reference.

Thanks

Rob

Case 42227: Enterprise iPad display.height/display.width reversed

Case 42228: Enterprise Autorotate includes unsupported orientations

Glad to hear I’m not alone tbuchler  :slight_smile:

And thanks for your report!

Olivier

Hi,

any news from tbuchler bugs Cases?

  • Case 42227: Enterprise iPad display.height/display.width reversed
  • Case 42228: Enterprise Autorotate includes unsupported orientations

I’ve checked the last Enterprise daily build notes, I didn’t find anything…  :frowning:

42228 is a total show-stopper for everyone who builds apps that require only landscape orientation.

totally agree : absolutely impossible to publish on a store with 42228.

I hope Corona team will fix it very soon…

This is not documented yet (I’m working on it). Adding following properties to App-Info.plist would solve orientation issue:

\<key\>CoronaViewSupportedInterfaceOrientations\</key\> \<array\> \<string\>UIInterfaceOrientationLandscapeLeft\</string\> \<string\>UIInterfaceOrientationLandscapeRight\</string\> \</array\>

And it is as far as I understand best way to solve the issue.

Update:

I just doublechecked. Both issues #42227 and #42228 are fixed by adding this .plist entry.

Thanks Vlads. 

The existing UISupportedInterfaceOrientations and UISupportedInterfaceOrientations~ipad keys should be kept in the plist file?

-Tom

Thanks vlads