UMG ScrollBox size issues - unwanted padding interfering with desired sizes
Basically, there is unwanted and non-removable extra padding around a ScrollBox that can't be removed and which makes the size of the box and its content not match the entered sizes in the ScrollBox's properties.
I'll explain by means of an example.
And I noticed the following incorrect behaviours:
I tried playing with various styling options, setting every size and margin to 0, but that did not fix the problem.
The following image shows the problem in the above-described setup.
Note that the image is 96x96, and has a single-pixel red border at its edges, and a single-pixel blue border inside that. You can see that the red border is cut from the bottom, and both the red and blue borders are cut from the right side of the second image.
2 years late,but just in case others are scrolling through.
This is what I do to remove the extra padding caused by the scroll bar from scroll box widgets. If you have the default setting for a scroll box then use the following:
The way did it was to place your scroll box into a size box, which adds padding capabilities to the scroll box. Go to the Padding as below and set it to a negative value for Left. With default settings (Bar width etc) -15 works for me. Adjust the left padding to suit your scroll bar size more precisely.
Follow this question
Once you sign in you will be able to subscribe for any updates here