Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

how to work with sideways
Started by felipealdev Mar 20 2019 11:03 AM

- - - - -
1 reply to this topic
sidewways
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

felipealdev

[GLOBAL: userInfoPane.html]
felipealdev
  • Observer

  • 1 posts
  • Corona SDK

I have problems when working with sideways, the image does not adapt correctly to the screen nor do I know what screen resolution I am working with.

 

thanks for all.

I have problems when working with sideways, the image does not adapt correctly to the screen nor do I know what screen resolution I am working with.



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,650 posts
  • Enterprise

Welcome to the forums.

 

Orientation is controlled in build.settings. You have to set a virtual width and height in config.lua that determines what you want one dot to means to your app. If you're not setting these values or you don't know what they are, then you're going to find working with Corona frustrating.

 

See this blog post to help you understand the content area:  https://coronalabs.com/blog/2018/08/08/understanding-content-scaling-in-corona/

 

This section of our build.settings guide covers controlling orientation in build.settings: http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#orientation

 

Rob




[topic_controls]
[/topic_controls]