Endless Scrollbar (Inventory) - GetScrollOffsetOfEnd always 0

Hello,

i want to use “Get Scroll Offset Of End” at the “Event Construct” but it is always zero.
Because i want to divide it by 2 to get the middle position offset and setting this as starting-point for the scrollbar.

When using it inside “On User Scrolled” it works fine.

Someone can explain what happens?

It’s probably too early to query the widget for its desired size. You could try calling Force Layout Prepass or Delay Until Next Tick:

image

And only then get the offset.

1 Like

Thank you very much, this is exactly what I was looking for.

There are so many functions that you don’t know about at the beginning.

Now I can also calculate the exact offset position, regardless of which screen/canvas size is used.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.