I am trying to create a window so that the contents inside the window can "scroll" with a scrollbar if the user resizes the window to a small size. I managed to create the window and add contents to it programmatically however when I resize my window the content gets "clipped". I assume one should use the ScrollView widget or some sort of panel but I have no idea how to use it. Any help would be much appreciated.
I just got the above working by setting
However with the Layout Editor this seems to be buggy. Every time I a run "test" in the Layout Editor, my ScrollView's position and size changes. When I return from the "test" the properties has changed to values I did not entered originally.
Well, it works fine. Here's steps that you should do:
- create window with ScrollView inside;
- set Stretch Align to ScrollView;
- set CanvasSize property to something like 1000 1000 (or, for example set it same as current ScrollView size);
- create child widgets in ScrollView.