Skip to content

Commit faa8ece

Browse files
RobPiercemportuga
authored andcommitted
Fix bug with template for last row's bottom border (#6515)
The logic that sets the bottom-border-width for the last row calls a function that doesn't exist - grid.getTotalRowHeight() (issue logged in #4413) so I've updated it slightly to calculate this value using the grid.getVisibleRowCount() multiplied by grid.options.rowHeight which should achieve the desired effect of the original logic.
1 parent e83ff2b commit faa8ece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/ui-grid/ui-grid.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111

1212
.grid{{ grid.id }} .ui-grid-row:last-child .ui-grid-cell {
13-
border-bottom-width: {{ ((grid.getTotalRowHeight() < grid.getViewportHeight()) && '1') || '0' }}px;
13+
border-bottom-width: {{ (((grid.getVisibleRowCount() * grid.options.rowHeight) < grid.getViewportHeight()) && '1') || '0' }}px;
1414
}
1515

1616
{{ grid.verticalScrollbarStyles }}

0 commit comments

Comments
 (0)