mleibman/SlickGrid — pull request #316 by matthieu-ravey (2012-04-02 16:12:31+00:00)
Title: Header size bug fix

When the size of all the headers is superior to 10'000px there is a bug where column headers are displayed to a second line and there is also a problem when you scroll.
This simple example induce the bug and you don't have it anymore with my fix.

$(document).ready(function () {
$('#node').css({
width:$(window).width(),
height:$(window).height()
});

var numberOfCols = 100;
var numberOfRows = 500;

var cols = [];

for (var i = 0; i < numberOfCols; i++) {
cols.push({
field:'c' + i,
id:'c' + i,
name:'c' + i
});
}

var rows = [];

for (var i = 0; i < numberOfRows; i++) {
var row = {};

for (var j = 0; j < numberOfCols; j++) {
row['c' + j] = (Math.random() * 100).toFixed(2);
}

rows.push(row);
}

window.grid = new Slick.Grid('#node', rows, cols, {
defaultColumnWidth:150
});
});