KoGrid icon indicating copy to clipboard operation
KoGrid copied to clipboard

Last column of grid is only partly visible

Open dotnetnico opened this issue 11 years ago • 1 comments

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

kogrid_last_col_hiding kogrid_last_col_visible

dotnetnico avatar Sep 04 '13 11:09 dotnetnico

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!

dotnetnico avatar Sep 05 '13 14:09 dotnetnico