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.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +12 -2
- package/dist/handsontable.full.css +12 -2
- package/dist/handsontable.full.js +6 -10
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +6 -10
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +5 -5
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/styles/handsontable.css +9 -2
- package/styles/handsontable.min.css +3 -3
- package/styles/ht-theme-horizon.css +2 -2
- package/styles/ht-theme-horizon.min.css +2 -2
- package/styles/ht-theme-main.css +2 -2
- package/styles/ht-theme-main.min.css +2 -2
- package/utils/ghostTable.js +1 -5
- package/utils/ghostTable.mjs +1 -5
package/utils/ghostTable.js
CHANGED
@@ -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
|
|
package/utils/ghostTable.mjs
CHANGED
@@ -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
|
|