tukaan icon indicating copy to clipboard operation
tukaan copied to clipboard

ScrollView widget

Open rdbende opened this issue 3 years ago • 12 comments

A scrollable frame.

scrollview = ScrollView(
    app,
    overflow=(False, "auto"),
    padding=(1, 2, 3, 4),
)

rdbende avatar May 16 '22 18:05 rdbende

How does it now when to stop the scrolling?

Moosems avatar May 16 '22 18:05 Moosems

How does it now when to stop the scrolling?

No, the user will scroll the frame

sumeshir26 avatar May 17 '22 02:05 sumeshir26

Here is what I meant to ask: Is there a limit to how long/much they can scroll? Will it limit it to the length/width of the widgets inside?

Moosems avatar May 17 '22 10:05 Moosems

Is there a limit to how long/much they can scroll? Will it limit it to the length/width of the widgets inside?

No, it won't.

rdbende avatar May 17 '22 13:05 rdbende

Ok 👍 Is there a way to add a limit?

Moosems avatar May 17 '22 13:05 Moosems

Yes, I could implement some limit control, but I don't really see its benefit 🤔

rdbende avatar May 17 '22 13:05 rdbende

That makes sense. I was thinking so that the user could make something similar to a webpage but not let the user scroll out into infinity

Moosems avatar May 17 '22 14:05 Moosems

Na yeah, neither thought I to scroll into infinity. Maybe I was a bit ambiguous. So it can only scroll until there's content, and not more (so that's why I didn't understand you limit question, there's no need for it).

rdbende avatar May 17 '22 14:05 rdbende

Na yeah, neither thought I to scroll into infinity. Maybe I was a bit ambiguous. So it can only scroll until there's content, and not more (so that's why I didn't understand you limit question, there's no need for it).

That makes more sense. Thanks for the clarification!

Moosems avatar May 17 '22 14:05 Moosems

I have a basic Scrollable Frame in one of my own projects that could be forged but I still need help fixing some kinks with it.

Moosems avatar Jul 15 '23 04:07 Moosems

Wouldn't that basically be a Frame with a scrollbar binded to it?

sumeshir26 avatar Jul 15 '23 05:07 sumeshir26

No, they don't scroll so you have to make a solution with a canvas and inner frame. It's weird.

Moosems avatar Jul 15 '23 14:07 Moosems