Skip to content

Commit

Permalink
Fix setGridWidth method in case grid overflow-y is set to scroll.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Jun 20, 2018
1 parent b6cb38e commit e9f3698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/grid.base.js
Expand Up @@ -5407,7 +5407,7 @@ $.jgrid.extend({
$t.p.tblwidth = initwidth;
aw = nwidth-brd*vc-gw;
if(!isNaN($t.p.height)) {
if($($t.grid.bDiv)[0].clientHeight < $($t.grid.bDiv)[0].scrollHeight || $t.rows.length === 1){
if($($t.grid.bDiv)[0].clientHeight < $($t.grid.bDiv)[0].scrollHeight || $t.rows.length === 1 || $($t.grid.bDiv).css('overflow-y') === 'scroll'){
hs = true;
aw -= scw;
}
Expand Down

0 comments on commit e9f3698

Please sign in to comment.