Title: fixed_columns causes issues with header alignment and overflowx · Issue #953 · plotly/dash-table · GitHub
Open Graph Title: fixed_columns causes issues with header alignment and overflowx · Issue #953 · plotly/dash-table
X Title: fixed_columns causes issues with header alignment and overflowx · Issue #953 · plotly/dash-table
Description: I'm attempting to generate a datatable with two fixed_columns and one fixed_row (header). The total number of columns requires overflowX (auto) typically so the user scrolls to see additional columns. With fixed_columns enabled ({'header...
Open Graph Description: I'm attempting to generate a datatable with two fixed_columns and one fixed_row (header). The total number of columns requires overflowX (auto) typically so the user scrolls to see additional colum...
X Description: I'm attempting to generate a datatable with two fixed_columns and one fixed_row (header). The total number of columns requires overflowX (auto) typically so the user scrolls to see additional c...
Opengraph URL: https://github.com/plotly/dash-table/issues/953
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fixed_columns causes issues with header alignment and overflowx","articleBody":"I'm attempting to generate a datatable with two fixed_columns and one fixed_row (header). The total number of columns requires overflowX (auto) typically so the user scrolls to see additional columns.\r\n\r\nWith fixed_columns enabled (```{'headers':True,'data':2}```), if I also have a header fixed_row (```{'headers':True,'data':0}```), then the header row is misaligned slightly:\r\n\r\nfixed_columns enabled (see top right corner of row header):\r\n\r\n\r\nfixed_columns disable\r\n\r\n\r\nAdditionally, if the table is several columns in length and the data overflowX's, then the behavior is incorrect if fixed_columns is enabled or disabled. With fixed_columns enabled, then the table does not adhere to it's size parameters and auto shrinks to a small size (without including ``` 'minWidth':'100%' ``` to the style_table, the table looks like this):\r\n\r\n\r\nFrom the forums, a trick is to add ``` 'minWidth':'100%' ``` to the style_table, which helps with the size, however the overflowX is incorrect now. With fixed_columns enabled, the overflow scroll goes off into infinity (I think?), well past the actual size of the data columns in the table. \r\n\r\nfixed_columns enabled ( ``` 'minWidth':'100%' ``` , see scroll bars on table - scrolling goes well past the table data):\r\n\r\n\r\nfixed_columns disabled ( ``` 'minWidth':'100%' ``` ):\r\n\r\n","author":{"url":"https://github.com/zach-morris","@type":"Person","name":"zach-morris"},"datePublished":"2022-12-15T16:10:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/953/dash-table/issues/953"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9b04661d-88fc-34d1-aa87-2a0feda27967 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EEE:2B9CDD:2E3AB9D:3D44B50:6A5CF7E9 |
| html-safe-nonce | d46504e61b6c3f04d67869d32c7e1e2d3402755aefb2846d6b085364d4c39525 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUVFOjJCOUNERDoyRTNBQjlEOjNENDRCNTA6NkE1Q0Y3RTkiLCJ2aXNpdG9yX2lkIjoiNzkzMjQ4NTUxMTQ5MTE1NTk0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8cf934d6066d2e92c9d727b672a691bd3073da4f5f3b24fafd0353509e14323e |
| hovercard-subject-tag | issue:1498706159 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/dash-table/953/issue_layout |
| twitter:image | https://opengraph.githubassets.com/536c494182dcd53fb70fe359dd51b93cf51396052bb0cf2319a045e48aabcad7/plotly/dash-table/issues/953 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/536c494182dcd53fb70fe359dd51b93cf51396052bb0cf2319a045e48aabcad7/plotly/dash-table/issues/953 |
| og:image:alt | I'm attempting to generate a datatable with two fixed_columns and one fixed_row (header). The total number of columns requires overflowX (auto) typically so the user scrolls to see additional colum... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zach-morris |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/dash-table git https://github.com/plotly/dash-table.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 128151266 |
| octolytics-dimension-repository_nwo | plotly/dash-table |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 128151266 |
| octolytics-dimension-repository_network_root_nwo | plotly/dash-table |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width