handsontable 15.0.0-next-77bd9e6-20241206 → 15.0.0-next-c7f1716-20241209

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,8 +149,6 @@ class GhostTable {
149
149
  if (!this.injected) {
150
150
  this.injectTable();
151
151
  }
152
- const isBorderBoxSizing = this.hot.view.getStylesHandler().areCellsBorderBox();
153
- const borderCompensation = isBorderBoxSizing ? 0 : 1;
154
152
  (0, _array.arrayEach)(this.rows, row => {
155
153
  // In cases when the cell's content produces the height with a decimal point, the height
156
154
  // needs to be rounded up to make sure that there will be a space for the cell's content.
@@ -158,9 +156,7 @@ class GhostTable {
158
156
  const {
159
157
  height
160
158
  } = row.table.getBoundingClientRect();
161
-
162
- // -1 <- reduce border-top from table (if box-sizing is not border-box)
163
- callback(row.row, Math.ceil(height) - borderCompensation);
159
+ callback(row.row, Math.ceil(height));
164
160
  });
165
161
  }
166
162
 
@@ -146,8 +146,6 @@ class GhostTable {
146
146
  if (!this.injected) {
147
147
  this.injectTable();
148
148
  }
149
- const isBorderBoxSizing = this.hot.view.getStylesHandler().areCellsBorderBox();
150
- const borderCompensation = isBorderBoxSizing ? 0 : 1;
151
149
  arrayEach(this.rows, row => {
152
150
  // In cases when the cell's content produces the height with a decimal point, the height
153
151
  // needs to be rounded up to make sure that there will be a space for the cell's content.
@@ -155,9 +153,7 @@ class GhostTable {
155
153
  const {
156
154
  height
157
155
  } = row.table.getBoundingClientRect();
158
-
159
- // -1 <- reduce border-top from table (if box-sizing is not border-box)
160
- callback(row.row, Math.ceil(height) - borderCompensation);
156
+ callback(row.row, Math.ceil(height));
161
157
  });
162
158
  }
163
159