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

Fix ScrollArea::show_rows #2258

Merged
merged 1 commit into from Nov 7, 2022
Merged

Fix ScrollArea::show_rows #2258

merged 1 commit into from Nov 7, 2022

Conversation

qthree
Copy link
Contributor

@qthree qthree commented Nov 7, 2022

I've encountered incorrect behavior of ScrollArea::show_rows when min_row becomes larger than max_row.
The way to fix it is to change min_row and max_row by the same amount when max_row larger then total_rows.
I can't provide test case atm.

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix!

@emilk emilk merged commit 75a825e into emilk:master Nov 7, 2022
JohannesProgrammiert pushed a commit to JohannesProgrammiert/egui that referenced this pull request Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants