In koGrid 2.1.1:
Somehow, the last column of a grid is only partly visible.
I reproduced this bug with an example using the default config of the grid.
HTML:
<div class="gridStyle" data-bind="koGrid: gridOptions"></div>
CSS:
.gridStyle {
border: 1px solid rgb(212, 212, 212);
width: 400px;
height: 300px;
}
Script:
function mainVm() {
var self = this;
this.myData = ko.observableArray([{
name: "Moroni",
age: 50
}, {
name: "Tiancum",
age: 43
}, {
name: "Jacob",
age: 27
}, {
name: "Nephi",
age: 29
}, {
name: "Enos",
age: 34
}]);
this.gridOptions = {
data: self.myData
};
};
ko.applyBindings(new mainVm());
Fiddle: http://jsfiddle.net/4hUcc/1/
I cannot find what is causing this. Got any clue??
Found it, in koGrid-2.1.1.debug.js, lines 2098 - 2114:
window.kg.domUtilityService.ScrollH and window.kg.domUtilityService.ScrollW are being calculated incorrectly. Fixed my problem by setting them both to 0. (zero)
Thanks!