Skip to content

Commit

Permalink
Fix bug with template for last row's bottom border (#6515)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RobPierce authored and mportuga committed Dec 22, 2017
1 parent e83ff2b commit faa8ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/ui-grid/ui-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

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

{{ grid.verticalScrollbarStyles }}
Expand Down

0 comments on commit faa8ece

Please sign in to comment.