KoGrid
KoGrid copied to clipboard
Last column of grid is only partly visible
Hi there,
Somehow, the last column of the grid is only partly visible. I reproduced this bug with default config/ auto gen of columns, see this Fiddle: http://jsfiddle.net/4hUcc/1/ or the attached screenshots.
I cannot find what is causing this.
Got any clue??
Thanks in advance, Nico
Found it, in koGrid-2.1.1.debug.js, lines 2105 - 2106:
window.kg.domUtilityService.ScrollH = ($testContainer.height() - $testContainer[0].clientHeight);
window.kg.domUtilityService.ScrollW = ($testContainer.width() - $testContainer[0].clientWidth);
$testContainer[0].clientHeight and $testContainer[0].clientWidth both return 0 (zero), causing an incorrect calculation.
Fixed it by setting ScrollH and ScrollW to 0 (zero)
Still don't fully understand what the purpose of this helper method is, btw?
Cheers!