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

Table header width doesn't match table cells after initializing Isortope #11

Open
daGUY opened this issue Oct 9, 2013 · 1 comment
Open

Comments

@daGUY
Copy link

daGUY commented Oct 9, 2013

After initializing Isortope on a standard HTML table, the table headers and the cells in their columns aren't computed to the same width, so they no longer line up.

Before:

screen shot 2013-10-09 at 10 40 41 am

After:

screen shot 2013-10-09 at 10 41 02 am

(Note: I added the red outlines just to make it easier to see the problem; the outlines themselves are not the cause).

The table is set to 100% width, inside of a Bootstrap column (33% width), inside of a containing element (1170px width). I thought the empty column on the right might have something to do with it, but it still happens even if I take that out.

I even tried forcing exact widths on each column in my stylesheet, and while that got the alignment closer, it still wasn't perfect.

Is there something else I'm missing?

@daGUY
Copy link
Author

daGUY commented Oct 9, 2013

It seems that padding has something to do with it: if I set the padding on the cells to 0, then wrap each cell's contents in a <div> and then apply the padding to that <div> instead, it fixes the misalignment. However, I still see a slight vertical shift in the cell contents when Isortope is applied (enough that there's a noticeable "jump" when it kicks in).

I still think this is a bug, or at least undesirable behavior, since ideally you shouldn't see any visual change when Isortope is applied to a table, no?

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

1 participant