Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

scrollView not giving other scenes chance to display
Started by JideGuru Jul 08 2017 04:12 PM

2 replies to this topic
widget scroll scrollview composer scenes

Best Answer Rob Miracle , 09 July 2017 - 08:42 AM

Are you putting the scrollView in the scene's display group?  i.e.   sceneGroup:insert(scrollView)?

[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

JideGuru

[GLOBAL: userInfoPane.html]
JideGuru
  • Observer

  • 14 posts
  • Corona SDK

Hey guys.

i was making a game with multiple scenes. while i was trying to make a screen scroll, i added scrollView widget but it doesnt allow any other scenes to show after it.

local scrollView = widget.newScrollView(
     {
         top = 0,
         left = 0,
         width = 1200,
         height = 700,
         scrollWidth = 200,
         scrollHeight = 200,
         backgroundColor = { 1, 0.8, 1 },
         horizontalScrollDisabled = true,


     }
)

any help is apprecieted

Thanks you



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,072 posts
  • Enterprise

  Best Answer

Are you putting the scrollView in the scene's display group?  i.e.   sceneGroup:insert(scrollView)?



[TOPIC: post.html]
#3

JideGuru

[GLOBAL: userInfoPane.html]
JideGuru
  • Observer

  • 14 posts
  • Corona SDK

Thanks Rob.

I guess i actually forgot to do that.

Now i added

group:insert( scrollView )

to my code and it works perfectly.
Thanks  :D




[topic_controls]
[/topic_controls]