-
Notifications
You must be signed in to change notification settings - Fork 17
table-sm Bootstrap class breaks fixedColumns #17
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
Comments
this is probably a bug, but you may override current css with this:
|
thanks @mkhairi! π This removes the extra arrow, but not the fact that the first column has its own scroll and that it can be independently moved. You can see it by making one of the packnames longer in your code: |
@Ana06, try to set column width on the first column <tr>
<th width="200px"></th>
<th class="text-center"> i586 </th>
<th class="text-center"> x86_64 </th>
<th class="text-center">i586</th>
<th class="text-center"> x86_64 </th>
.... or pass datatables option columnDefs: [
{ width: 200, targets: 0 }
], or use css ellipsis |
This doesn't seem to work: http://live.datatables.net/liduciti/1/edit
http://live.datatables.net/puraqodo/1/edit But there the border between the first and the second column is gone... it seems that the first column is wither than the cell where it is contained: |
@Ana06, π here alternative example using ellipsis and word-wrap |
That works perfectly... until you add a |
@Ana06 why did you add class |
@Ana06 owh, i see... try use |
@mkhairi that works! π I am still not completely convinced with having to set the column width, but it is good enough π The bug should still be fix in DataTables though π Thanks for the help! π I have added you as co-author as it is more your code than mine (hope that it is fine): openSUSE/open-build-service@15415b1 |
@mkhairi, just in case it is useful to fix the bug, we needed to add |
Using
table-sm
Boostrap class withfixedColumns
option breaks the table and render an extra arrow.With
table-sm
:Without
table-sm
:HTML code (it is long π):
Javascript code:
Real/original code can be found here: https://github.com/openSUSE/open-build-service/blob/master/src/api/app/views/webui2/webui/project/monitor.html.haml
The text was updated successfully, but these errors were encountered: