Black Bars on the SIDES IOS

Hi,

When I  test my app on my Iphone 7, I see black bars on the sides and I do not understand why it’s happening.

My app is on landscape mode

This is my config.lua:

application = { content = { width = 320, height = 480, scale = "letterbox", xAlign = "center", yAlign = "center", imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0 } } }

And this is how I load my images for the background:

snowBackground = display.newImageRect("level1/FONDO1.jpg",570,360) snowBackground.x = display.contentWidth snowBackground.y = y sceneGroup:insert(snowBackground) snowBackground2 = display.newImageRect("level1/FONDO2.jpg",570,360) snowBackground2.x = display.contentWidth+snowBackground2.width snowBackground2.y = display.contentCenterY sceneGroup:insert(snowBackground2)

I have three different sets for each image:

FONDO1.jpg which is 570x360, FONDO1@2x.jpg which is 1140x720 and FONDO1@4x.jpg which is 2280x1440

FONDO2.jpg which is 570x360, FONDO2@2x.jpg which is 1140x720 and FONDO2@4x.jpg which is 2280x1440

I am using letterbox as scaling mode and making the images bigger than 320x480 in my config.lua.

Any idea how to fix it?

Thanks

https://forums.coronalabs.com/topic/68418-black-bars-on-regular-build-with-iphone-7/

Hi alexfontanellas,

Should solve your problem https://forums.coronalabs.com/topic/73041-ideal-scaling-calculator/

Have a nice day:)

ldurniat

Thank you. It works now!

https://forums.coronalabs.com/topic/68418-black-bars-on-regular-build-with-iphone-7/

Hi alexfontanellas,

Should solve your problem https://forums.coronalabs.com/topic/73041-ideal-scaling-calculator/

Have a nice day:)

ldurniat

Thank you. It works now!