I have some widgets with buttons in root. I want to set those widgets in scrollbox menu, but they appear very small.
Size of widgets:
X = size of scrollbox
Y = ???
So… How to set Y size of widgets?
I tried to “set des. size in viewport”, before i add them to scrollbox, bu it didnt work. Tried to Set Size of Grid, UniGrid and vertBox slots, but that didn’t help me as well.
Can you show us an image of Designer for your Widget, including Hierarchy panel so we can see how you have this set up? You can also and attach .uasset file if that’s easier. Thanks!
If you would like to be able to set size of things in your scroll box, one of ways that I have found to do this is to add a canvas panel to your scroll box. You can use multiple canvas panels if needed. It will appear very small at first but as soon as you place anything inside canvas panel it will assume size of what ever widget you place in it. You can then size it to your specifications . I have attached an image to show my hierarchy. I hope this helps.
After further testing it appears that workflow that I gave is only viable in 4.6. I was unable to come up with a workaround for 4.5.1 version of engine. As you can see this is a known issue and it has been addressed in a later version.
Well ok then. Will continue to work on this part, after 4.6 will be released.
But it would be great, if we can set size of slots right in ScrollBox/VerticalBox settings. Or in slots settings, because now it looks like it sets size of widgets or CanvasPanels to 0.