x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Slate ScrollBox scroll bar height on small height containers

Hi,

I have encountered a bug with the Slate ScrollBox in C++ programming:

I have a (vertical) scrollbox wrapped into a box with a height override of 30 in order to limit the size of the scrollbox to the equivalent of one line of text. This works really well, except that the scrollbar on the side takes the whole height regardless of how much you can scroll.

This happens only with small scrollboxes (in terms of height, for a vertical oriented scrollbox)

The expected behaviour is that the scrollbar has a size that is a ratio of the portion of the scrollbox on screen, divided by the total height (in my case) of the scrollbox. When this ratio is 1, then the scrollbar will not be visible because the whole scrollbox is visible. When this ratio is 0.5, the height of the scrollbar is 50% of the height of the scrollbox on screen, etc...

Well here the scrollbar does get hidden when there is no need for it, but otherwise it is always at maximum height.

Screenshots:

Good scrollbar: https://i.gyazo.com/e4b39260f829f521d823448c2e50d310.png

Bad scrollbar: https://i.gyazo.com/ce76ea5ba75f52b547955c1a09a997c6.png

Apologies for the poor contrast.

Product Version: UE 4.15
Tags:
more ▼

asked Mar 11 '17 at 06:19 PM in Bug Reports

avatar image

Altrue
54 3 9 12

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hello Altrue,

Thank you for reporting this issue. I've placed a bug report in for this issue and it seems to occur with both UMG and Slate code. You can find/track the bug report here: UE-42875

more ▼

answered Mar 14 '17 at 05:34 PM

avatar image

Matthew J ♦♦ STAFF
31.8k 526 91 417

avatar image Altrue Mar 14 '17 at 05:47 PM

Thank you for taking the time to look into this :)

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question