Topic was automatically imported from the old Question2Answer platform.
Asked By
Felipe
I have a ScrollContainer with nodes in it. It scrolls fine, but when I reach the bottom of ScrollContainer, the scrolling stops. I would like it scroll up a bit longer, leaving a blank space at the bottom (like a margin).
I know how to do this using empty TextureRects or Labels, but I this it is a workaround. I think that add elements that will not be used is not a good solution.
Any ideas of how to add this space?
Add a MarginContainer inside the ScrollContainer, then put whatever was inside the ScrollContainer inside the MarginContainer. Under the MarginContainer’s “Custom Constants” properties, set “Margin Bottom” to whatever value you desire.
Sadly it have to be one more node to to this, but as that is the function of the MarginContainer, i think it is the best option. Solved my problem. Thant you.