Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

ScrollView orientation
Started by apps30 Feb 21 2019 07:27 PM

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

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 71 posts
  • Corona SDK

I think this a common question but I can't find any answer about it.

 

I had a scrollview (not in full screen). When the screen rotate, it is able to re-position and rotate automatically but it doesn't able to resize it. 

 

I tried to add system runtime event for handling 'resize' and want to manually resize the scrollview, but I found the api doc telling me the scrollview is not able to resize or scale:

 

https://docs.coronalabs.com/api/library/widget/newScrollView.html

 

So, my question is how can I resize the scrollview and everything within the scrollview when the screen rotate?

 

 



[TOPIC: post.html]
#2

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,069 posts
  • Corona SDK

I would make the scrollview the largest size you might need it and only put content into the portion which requires displaying for the screen orientation.




[topic_controls]
[/topic_controls]