handsontable 15.0.0-next-fdd4480-20241205 → 15.0.0-next-c7f1716-20241209

Sign up to get free protection for your applications and to get access to all the features.
@@ -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