Scrolling Layer control...

Questions and information about using Lua scripting with Storyboard

Moderator: jamiev

Scrolling Layer control...

Postby ScotSutherland » Wed Oct 07, 2015 10:29 am

SB 4.1
IOS 8.3
iPad 2 16 GB

I have been using scrolling layers. They work great until I dynamically change the content. Then the content panel is left in the previous scrolling position. If the original list is long and the new list is short this can mean the user is presented with a blank window until they scroll the contents all the way to the top.

Struggling to find the attribute to set that controls the position of the layer contents in the layer without the complexity of adding a group. I would also like to be able to set the scrolling position of the layer based upon actions generated by other controls. Changing the y of the layer moves the window.

Do I have to loop through all the controls in the layer and reset them, or is there an attribute that allows me to control the position of the entire contents of the layer?
ScotSutherland
 
Posts: 23
Joined: Mon Jul 13, 2015 3:53 pm

Re: Scrolling Layer control...

Postby ScotSutherland » Wed Oct 07, 2015 12:22 pm

grd_xoffset
grd_yoffset

Pretty simple, thanks to Mike Marchand. Wonder why I couldn't find it in the docs. Of course I can't find anything in a grocery store either.
ScotSutherland
 
Posts: 23
Joined: Mon Jul 13, 2015 3:53 pm


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron