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

GTK DetailedList bug fix #1924

Closed

Conversation

LunaMeadows
Copy link
Contributor

@LunaMeadows LunaMeadows commented May 2, 2023

Changed how the scrolled_window was added to the overlay. Also changed the set_policy for scrolled_window to allow for horizontal scroll to update width of the detailedlist.

Added _update_scrolled_window_width which will loop through all of the list_box children and update the width of what I assume is the scrolled window but may actually be the overlay, not fully sure. Name may need to be adjusted.

When a detailedlist is added to a box, it currently does not show at all. This shows the detailed list inside the box at the min_width.

Fixes #1920

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@LunaMeadows LunaMeadows marked this pull request as ready for review May 2, 2023 17:53
Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

Nice debug work - but the solution is actually even simpler than this. The GTK implementation of DetailedList is missing a rehint() method, so it's never telling the core layout algorithm that it's able to resize to fill the container.

I've implemented this in #1927, so I'll close this PR.

@LunaMeadows LunaMeadows deleted the DetailedList_empty_row_#1920 branch May 3, 2023 05:43
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.

DetailedList showing empty rows
2 participants