RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

Adds API to ScrollContainers to be able to set the scroll handle position acurrately

Open AJCM-git opened this issue 1 year ago • 4 comments

What it says on the tin, basically adds 3 methods SetScrollValueToPercentage and a vertical and horizontal version that serve as wrappers for SetScrollValue

AJCM-git avatar May 19 '24 21:05 AJCM-git

What do you need this for?

PJB3005 avatar May 20 '24 14:05 PJB3005

What do you need this for?

To access the scrollbar position methods, for example, I'm making a messenger PDA app and i want to scroll to the bottom when entering a profile or when sending/being sent a message

image

https://github.com/space-wizards/RobustToolbox/assets/60196617/9f3be7cc-5501-4570-9b8c-14b594156d7e

I assumed having access to the engine-side children of a control to change behavior was guzzy since things like AnimatedTextureRect.DisplayRect do it, is it a problem here?

AJCM-git avatar May 21 '24 01:05 AJCM-git

It would be better API design to add a scroll-to-target API to ScrollContainer instead.

moonheart08 avatar May 21 '24 01:05 moonheart08

It would be better API design to add a scroll-to-target API to ScrollContainer instead.

Took a small break and did that

AJCM-git avatar Jun 01 '24 15:06 AJCM-git