Skip to content

Commit 65dbce4

Browse files
committed
Fixed issue with first refresh call after grid sized not making scrollbar appear
1 parent 84b65f6 commit 65dbce4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

grid-markup/grid.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
$( "#dataTable2" ).grid()
2828
.grid("widget").height(300).resizable()
2929
$( "#dataTable2" ).grid("refresh");
30-
$( "#dataTable2" ).grid("refresh");
3130
});
3231
</script>
3332
</head>

grid-markup/grid.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ $.widget( "ui.grid", {
9797
if ( this.uiGrid.is(":ui-resizable") ) {
9898
this.uiGrid.addClass( "ui-grid-resizable" );
9999
if ( footHeight < 16) {
100-
footHeight = this.uiGridFoot.height( 16 );
100+
this.uiGridFoot.height( 16 );
101+
footHeight = this.uiGridFoot.height();
101102
}
102103
} else {
103104
this.uiGrid.removeClass( "ui-grid-resizable" );

0 commit comments

Comments
 (0)