Skip to content

Commit

Permalink
DataGrid - columnHidingEnabled should not change row height (#7080)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonSermyazhko authored Feb 26, 2019
1 parent dbb41c7 commit c6ea83b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
9 changes: 7 additions & 2 deletions styles/widgets/generic/gridBase.generic.less
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,13 @@
}
}

.dx-row > td {
padding: @GENERIC_GRID_BASE_CELL_PADDING;
.dx-row {
& > td {
padding: @GENERIC_GRID_BASE_CELL_PADDING;
}
& > td.dx-command-adaptive {
padding: @GENERIC_GRID_BASE_CELL_PADDING - 2px @GENERIC_GRID_BASE_CELL_PADDING;
}
}

.dx-@{widgetName}-content .dx-@{widgetName}-table .dx-row {
Expand Down
16 changes: 11 additions & 5 deletions styles/widgets/material/gridBase.material.less
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,17 @@
}
}

.dx-row > td {
padding-top: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
padding-bottom: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
font-size: @MATERIAL_GRID_BASE_CELL_FONT_SIZE;
line-height: @MATERIAL_GRID_BASE_CELL_LINE_HEIGHT;
.dx-row {
& > td {
padding-top: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
padding-bottom: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING;
font-size: @MATERIAL_GRID_BASE_CELL_FONT_SIZE;
line-height: @MATERIAL_GRID_BASE_CELL_LINE_HEIGHT;
}
& > td.dx-command-adaptive {
padding-top: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING - 2px;
padding-bottom: @MATERIAL_GRID_BASE_CELL_VERTICAL_PADDING - 2px;
}
}

.dx-@{widgetName}-content .dx-@{widgetName}-table .dx-row {
Expand Down

0 comments on commit c6ea83b

Please sign in to comment.