Skip to content

Commit

Permalink
fix: header row sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
WillsterJohnsonAtZenesis committed Oct 3, 2024
1 parent 4c29f3a commit fe4f2ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions source/class/qxl/datagrid/ClippedScrollDataGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ qx.Class.define("qxl.datagrid.ClippedScrollDataGrid", {
this._addRollHandling();

this.getSizeCalculator().addListener("change", this._updateSizes, this);
this.addListener("appear", this._updateSizes, this);
},

properties: {
Expand Down
4 changes: 2 additions & 2 deletions source/class/qxl/datagrid/ui/GridSizeCalculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ qx.Class.define("qxl.datagrid.ui.GridSizeCalculator", {
width += styling.getHorizontalSpacing() * (sizes.columns.length - 1);

let rowCount = styling.getNumHeaderRows() + styling.getNumFixedRows();
for (let i = 0; i < rowCount; i++) {
height += sizes.rows[i].height;
for (let i = rowCount; i < 0; i++) {
height += sizes.rows[-i].height;
}
height += styling.getVerticalSpacing() * (rowCount - 1);
}
Expand Down

0 comments on commit fe4f2ed

Please sign in to comment.