Skip to content

Commit c08cf52

Browse files
committed
Fixed column widths to match up exactly
1 parent 65dbce4 commit c08cf52

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

grid-markup/grid.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,28 @@ Functional
2323
Presentational
2424
*/
2525
.ui-grid .ui-grid-head {
26-
border-left-width: 0;
27-
border-right-width: 0;
2826
border-bottom-width: 0;
2927
}
3028
.ui-grid .ui-grid-head tr {
3129
border-left-width: 0;
3230
border-right-width: 0;
3331
}
34-
.ui-grid .ui-grid-head td {
35-
border-left-width: 0;
32+
.ui-grid .ui-grid-head th {
33+
border-right-width: 0;
3634
}
3735
.ui-grid .ui-grid-body {
3836
border-top-width: 0;
3937
border-bottom-width: 0;
4038
}
4139
.ui-grid .ui-grid-body tr {
4240
height: 2em;
41+
border-top-width: 0;
4342
border-left-width: 0;
4443
border-right-width: 0;
4544
}
4645
.ui-grid .ui-grid-body td {
47-
border-left-width: 0;
46+
border-top-width: 0;
47+
border-right-width: 0;
4848
}
4949
.ui-grid th, .ui-grid td {
5050
padding: 0.2em 0.4em;

grid-markup/grid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $.widget( "ui.grid", {
110110
// Adjust head in case of visible scrollbar on body to keep columns aligned
111111
var vertScrollbar = ( this.uiGridBody[0].scrollHeight !== this.uiGridBody[0].clientHeight );
112112
if ( vertScrollbar ) {
113-
this.uiGridHead.css("padding-right", ( this.uiGridBody.width() - this.uiGridBodyTable.width() ) + "px" );
113+
this.uiGridHead.css("padding-right", ( this.uiGridBody.width() - this.uiGridBodyTable.outerWidth() ) + "px" );
114114
} else {
115115
this.uiGridHead.css("padding-right", 0);
116116
}

0 commit comments

Comments
 (0)