#Label with weird behavior

1 messages · Page 1 of 1 (latest)

obtuse dust
#

See the attached video. The labels on iether side of the slider are being a bit weird when you resize the window. How do fix the right label so that it it doesn't translate right past the edge of the screen, and left into the slider? The inspector window in the clip is for the problematic label

clever halo
#

Are you using layout groups to arrange the labels and the slider?

#

given that the position isn't being driven by a parent group, probably not

#

the anchor settings look pretty weird

#

you've got the min anchor at X = -1 and then you have a delta of 3003 on the left

#

ideally, you should have a hierarchy like this:

  • Settings Holder <-- HorizontalLayoutGroup, set to control child size and to not force-expand children
    • Left Label
    • Slider <-- LayoutElement, requesting some minimum horizontal space and allowing for flexible horizontal space
    • Right Label