-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[MdTable] fixed header does not align header with table content #1810
Comments
I think this will be hard to solve because it split ups the table to content and header to separate divs. |
Wouldn't an easy fix be to apply the temporary fix within the component?
If I understand the code correctly in MdTable.vue one would be able to add something like this:
|
Hi, I am using MdTable with fixed-header while still counter the problem: header is not align with table content, the sample code is here:https://codesandbox.io/s/vue-template-3iq42?fontsize=14 and it looks like this: |
Has this issue been resolved? |
No I don't believe so. I'm still seeing the issue. Samuel1 added a code fix which was merged into dev, but this needs to get added into master for a release. |
Steps to reproduce
You can also see that the table header content doesn't align to start with ether.
After a window resize it does however align properly.
Which browser/system?
vue-material: 1.0.0-beta-10.2
Vue: 2.5.16
Browser: Opera 53.0.2907.37
OS: Arch Linux (x86_64; /usr/bin/i3)
What is expected?
The table header content should align with the table content as it does when you resize the window
What is actually happening?
The table header content does not re align at all
Reproduction Link
https://codesandbox.io/s/p7n7xjjr3j?module=App.vue
Temporary fix
Create a watcher on your table data that calls mdTable's setWidth method whenever the data changes.
The text was updated successfully, but these errors were encountered: