Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrollView widget #76

Open
rdbende opened this issue May 16, 2022 · 12 comments
Open

ScrollView widget #76

rdbende opened this issue May 16, 2022 · 12 comments
Labels
Area: widgets Widget related stuff enhancement New feature or request
Milestone

Comments

@rdbende
Copy link
Member

rdbende commented May 16, 2022

A scrollable frame.

scrollview = ScrollView(
    app,
    overflow=(False, "auto"),
    padding=(1, 2, 3, 4),
)
@rdbende rdbende added this to To do in Widget palette May 16, 2022
@rdbende rdbende added enhancement New feature or request Area: widgets Widget related stuff labels May 16, 2022
@Moosems
Copy link
Collaborator

Moosems commented May 16, 2022

How does it now when to stop the scrolling?

@sumeshir26
Copy link

How does it now when to stop the scrolling?

No, the user will scroll the frame

@Moosems
Copy link
Collaborator

Moosems commented May 17, 2022

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?

@rdbende
Copy link
Member Author

rdbende commented May 17, 2022

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.

@Moosems
Copy link
Collaborator

Moosems commented May 17, 2022

Ok 👍 Is there a way to add a limit?

@rdbende
Copy link
Member Author

rdbende commented May 17, 2022

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

@Moosems
Copy link
Collaborator

Moosems commented May 17, 2022

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

@rdbende
Copy link
Member Author

rdbende commented May 17, 2022

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).

@Moosems
Copy link
Collaborator

Moosems commented May 17, 2022

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!

@rdbende rdbende added this to the 0.5.0 milestone Jul 6, 2022
@Moosems
Copy link
Collaborator

Moosems commented Jul 15, 2023

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.

@sumeshir26
Copy link

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

@Moosems
Copy link
Collaborator

Moosems commented Jul 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: widgets Widget related stuff enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

3 participants