You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Header heights were wrong in the "row header", as well as kinda weird when
multiple filters were on one column and another only had one: the border
on the second one would be too short.
This change adds handling for updating the headers' heights to keep them
consistent. Any header cell shorter than the largest header gets explicitly set to the
right height.
Alternatively every header cell will get set to the "inner" height of its
header so a shorter header cell will still have the right border size as a
larger one.
Fixes#1639, fixes#1613
// If the render container has an "explicit" header height (such as in the case that its header is smaller than the other headers and needs to be explicitly set to be the same, ue thae)
// Otherwise if the render container has an INNER header height, use that on the header cells (so that all the header cells are the same height and those that have less elements don't have undersized borders)
// Get the "inner" header height, that is the height minus the top and bottom borders, if present. We'll use it to make sure all the headers have a consistent height
Copy file name to clipboardExpand all lines: src/templates/ui-grid/uiGridViewport.html
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
<divclass="ui-grid-viewport">
2
2
<divclass="ui-grid-canvas">
3
-
<divng-repeat="(rowRenderIndex, row) in rowContainer.renderedRows track by row.uid" class="ui-grid-row" ng-style="containerCtrl.rowStyle(rowRenderIndex)">
3
+
<divng-repeat="(rowRenderIndex, row) in rowContainer.renderedRows track by $index" class="ui-grid-row" ng-style="containerCtrl.rowStyle(rowRenderIndex)">
0 commit comments