-
Notifications
You must be signed in to change notification settings - Fork 727
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
Strange column width behaviour when updating DataTable
on *Selected
event
#4470
Comments
TomJGooding
changed the title
Strange column width behaviour when updating
Strange column width behaviour when updating May 1, 2024
DataTable
on `*Selected* eventDataTable
on *Selected
event
Just to note in case it is relevant, there are also a couple of existing issues relating to column widths: |
I've had some time to look a bit into this. Still getting familiar with the Textual framework so apologies for any oversights here. From what I'm seeing / intuiting Flow of code
Minor points to note
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was originally posted in discussion #4463 by @luked42
There seems to be some strange behaviour with column widths when trying to update a
DataTable
on a*Selected
event.Here's an example based on the original post. When updating the table with the binding, the column widths work as expected. But if you swap this to update the table when a row is selected, it seems the column width isn't updated until the next refresh (when a row is hovered/highlighted, etc).
The text was updated successfully, but these errors were encountered: