Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

iOS insets with 2017.3156 and black bar on left & right sides
Started by paul.cardwell Oct 05 2017 07:11 AM

1 reply to this topic
ios insets black bar
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

paul.cardwell

[GLOBAL: userInfoPane.html]
paul.cardwell
  • Contributor

  • 153 posts
  • Corona SDK

Issue 1.

 

I have been redoing my App and on iOS I noticed it thinks there is an inset.  This is on iPhone 6, I don't have an iPhone 7/8 to try it on.  May be a bug?

 

Issue 2.

 

Using an iPhone 6 in landscapeRight...

 

I am seeing empty black areas vertical to the left and right of the App. In the Corona SDK simulator those are not showing w/ iPhone 6.  Is there config/build setting I need to set?

 

Using the Nvidia K1 tablet in landscapeRight...

 

There are no bars and the content fills the screen.

 

My config has:

 

local aspectRatio = display.pixelHeight / display.pixelWidth
local portraitWidth, portraitHeight = 320, 480
 
application { content {
width = aspectRatio > 1.5 and portraitWidth or math.ceil( portraitHeight / aspectRatio ),
height = aspectRatio < 1.5 and portraitHeight or math.ceil( portraitWidth * aspectRatio ),
scale = "letterbox",
fps = 60,
}}
 

 



[TOPIC: post.html]
#2

paul.cardwell

[GLOBAL: userInfoPane.html]
paul.cardwell
  • Contributor

  • 153 posts
  • Corona SDK

For the black bars issue on iOS, solved it thanks to Rob Miracle's reply for another topic:
 
 
Thanks Rob!



[topic_controls]
[/topic_controls]