-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Replacement thead height height larger than original #52
Comments
please post an example of this bug to jsfiddle. I need to see the bug in order to fix it. also, are you using inline styles on the table elements? if so, you should change it to use css selectors and use the table's class in them (add one if needed) |
No inline styles. See http://jsfiddle.net/V9Fpn/. It might not be a bug, just something CSS related, but I just wanted to let others know I encountered this scenario and what I did to get around it. |
Seems to be a bug. I have a fix for it in the next release which is not officially out but you can see that it works: Thanks for letting me know about it. |
this should be fixed in latest version |
Thank you. All the best. |
Please try this. It's worked for me
// try to resize table thead. tr |
This example uses options from version 1.x.x,
Though this issue is 5 years old, so maybe that's ok
…On Sun, Jul 7, 2019, 9:33 PM vinika02 ***@***.***> wrote:
Please try this. It's worked for me
var $table = $('table.table-wages');
$table.floatThead({
scrollingTop: 0,
useAbsolutePositioning: false,
scrollContainer: function($table){
return $table.closest('.table-wages-container');
}
});
// try to resize table thead. tr
$(".size-row,.floatThead-col").css("height", '48px');
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#52?email_source=notifications&email_token=AAC5WSIKBEOZDTAMG6MQQDTP6KKPRA5CNFSM4AMJGTL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZLXWAQ#issuecomment-509049602>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC5WSOROFDVUTFIIMOEJ7DP6KKPRANCNFSM4AMJGTLQ>
.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Don't know if there is a specific problem on my end, but the replacement thead for the original table has a bigger height than it should. In my case thead has 24px, but the actual th, that has no borders, just padding, has 20px.
So, I changed the following variable in setHeaderHeight():
var headerHeight = $header.find('th').outerHeight(true); (instead of $header.outerHeight(true))
In initially thought to keep the bigger height, because it looks better, so I added the following line in the same function:
$floatTable.find('thead > tr').height(headerHeight);
The text was updated successfully, but these errors were encountered: