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

UITable scrollbar behaviour #16

Open
ChrisDownUnder opened this issue Oct 24, 2022 · 2 comments
Open

UITable scrollbar behaviour #16

ChrisDownUnder opened this issue Oct 24, 2022 · 2 comments

Comments

@ChrisDownUnder
Copy link
Contributor

Hi nakst

Currently when you use a UITable, the vertical scrollbar extends into the table header background area.

The screenshot showing your Config Editor demonstrates this scrollbar behaviour, as does the luigi/luigi2 example.

For your consideration, a two-line patch which:

  • changes the scrollbar bounds.t so it fits within the table draw area
  • moves the table bounds.r update to after UIDrawControl is called for the table header background (UI_DRAW_CONTROL_TABLE_BACKGROUND), so this call paints across the full width

See pull request #15

Regards,
OzChris / ChrisDownUnder

@nakst
Copy link
Owner

nakst commented Oct 25, 2022

The current behaviour is intended. You can see Windows Explorer doing the same thing:
https://www.howtogeek.com/wp-content/uploads/2018/03/img_5ab55cf366391.png

@nakst
Copy link
Owner

nakst commented Oct 25, 2022

Is there a reason why you think the behaviour should be changed?

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

No branches or pull requests

2 participants