When resizing column width it wraps
See original GitHub issueHi, When I resize width of the columns, header become corrupt like in screenshot.
Well, I just tried tabulator_modern.css and no this issue. So I guess tabulator.css had an issue…
Example I trying:
<!DOCTYPE html>
<html>
<head>
<title>Broken Header</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/tabulator.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/tabulator.js"></script>
</head>
<body>
<h1>Heder Broke on Resize</h1>
<br />
<div id="example-table"></div>
<script type="text/javascript">
$(document).ready(function() {
$("#example-table").tabulator({
fitColumns:true,
tooltips:true,
pagination:true,
movableCols:true,
index: "ID",
persistentLayout: false,
columns:[ //Define Table Columns
{title:"Days", field:"Days", sorter:"number", width:150, align:"left", headerFilter:true},
{title:"Desc", field:"Desc", sorter:"string", width:250, sortable:true, headerFilter:true},
{title:"Control", field:"Control", sorter:"string", width:150, align:"left", headerFilter:true},
{title:"Account", field:"Account", sorter:"string", width:100, editable:true, headerFilter:true},
{title:"Amount", field:"Amount", sorter:"number", width:125, align:"left", headerFilter:true},
{title:"Comment", field:"Comment2", sorter:"string", align:"left", editable:true, headerFilter:true}
],
rowClick:function(e, id, data, row){ //trigger an alert message when the row is clicked
},
cellEdited:function(id,data,row){
},
});
$("#example-table").tabulator("setData", tabledata);
});
var tabledata = [{"ID":1,"Account":"66","Days":66,"Desc":"CAC","Control":"omg1025","Amount":-10000,"Comment2":"nc"},{"ID":2,"Account":"77","Days":0,"Desc":"JORDAN","Control":"omg1026","Amount":27294.00,"Comment2":"nc"}];
</script>
</body>
</html>
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Why do my columns wrap with window resize? - Stack Overflow
You're setting a fixed width to the first columns, which is not adaptive, and is pushing back the last divs. If you need...
Read more >Adjust the column size to see everything - Microsoft Support
To quickly set the column width to display everything, double-click the column separator. To make text wrap within a cell, on the Home...
Read more >How to change and AutoFit column width in Excel - Ablebits
Another way to autofit columns in Excel is by using the ribbon: select one or more columns, go to the Home tab >...
Read more >How to Set WordPress Column Block to Resize Responsively ...
As the page width shrinks (or on a device with a smaller screen), the column block uses flex-wrap: wrap; to wrap the column...
Read more >How to set word-wrap and limit column width while altering ...
The most accurate way is to put the cell content into a wrapper element (a span or div) and then apply CSS to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for nice grid plugin, I stuck in this place but saw this issue and it worked. Thanks
Hi Oli, I am glad I made a little bit of contribution 😃 The table is great!