-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vertical scrolling is scrolling in the wrong direction #228
Comments
Hello! The issue will be in GUI node sizes setup for scroll view and scroll content nodes Please take note how the GUI is adjusted in examples, they have the vertical scrolls (at least in main menu) You should adjust the scroll content position, anchor and node sizes Try to set the anchor to North to both of nodes, position to 0:0 and make a size of content bigger than view |
Thanks for the response! I have been taking a long look at the example and I have made some progress. I guess the way my nodes were set up was wrong. Now I am facing a different problem: to make it short, I use druid to scroll on text which has a size that is only known at run time, and so I have to limit the scrolling after the end of the text. Thanks for your time! |
Seems like you trying to handle scroll work by yourself, since the Scroll component can handle it by default You should change the scroll content size via All you need is |
Hey, thank you I finally got it to work correctly! |
Hi,
not sure it if is me or not, but I can't get a vertical scroll component to scroll in the right direction. Is there a way to change scrolling direction? I have a box node with a druid text node inside. The parent clipping mode is set to stencil.
Here is a short video of the problem https://streamable.com/5o5nvi
And here is how I create the scroll component:
local druidParagraphScroll = self.druid:new_scroll(paragraphNode, paragraphTextNode) :set_extra_stretch_size(0) :set_inert(false) :set_horizontal_scroll(false)
The text was updated successfully, but these errors were encountered: