Skip to content

Commit ce0e65b

Browse files
committed
Grid: chain setting padding-right to 0 and null and added a comment
1 parent 5be72c4 commit ce0e65b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grid-spf/grid.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ $.widget( "ui.grid", {
211211
this.uiGridHeadAndFoot.css( "padding-right", paddingRight + "px" );
212212
this.uiGridHeadTableAndFootTable.css( "padding-right", "1px");
213213
} else {
214-
this.uiGridHeadAndFootAndTables.css( "padding-right", 0 );
215-
this.uiGridHeadAndFootAndTables.css( "padding-right", null );
214+
// Have to set to 0 before removing property or it "sticks"
215+
this.uiGridHeadAndFootAndTables.css( "padding-right", 0 ).css( "padding-right", null );
216216
}
217217

218218
this._trigger( "refresh" );

0 commit comments

Comments
 (0)