handsontable 0.0.0-next-5b6e8d3-20240724 → 0.0.0-next-7f8f4f9-20240724
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +9 -17
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +4 -4
- package/dist/handsontable.js +9 -17
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +4 -4
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/contextMenu/menu/positioner.js +4 -12
- package/plugins/contextMenu/menu/positioner.mjs +4 -12
package/helpers/mixed.js
CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
|
|
134
134
|
function _injectProductInfo(key, element) {
|
135
135
|
const hasValidType = !isEmpty(key);
|
136
136
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
137
|
-
const hotVersion = "0.0.0-next-
|
137
|
+
const hotVersion = "0.0.0-next-7f8f4f9-20240724";
|
138
138
|
let keyValidityDate;
|
139
139
|
let consoleMessageState = 'invalid';
|
140
140
|
let domMessageState = 'invalid';
|
package/helpers/mixed.mjs
CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
|
|
124
124
|
export function _injectProductInfo(key, element) {
|
125
125
|
const hasValidType = !isEmpty(key);
|
126
126
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
127
|
-
const hotVersion = "0.0.0-next-
|
127
|
+
const hotVersion = "0.0.0-next-7f8f4f9-20240724";
|
128
128
|
let keyValidityDate;
|
129
129
|
let consoleMessageState = 'invalid';
|
130
130
|
let domMessageState = 'invalid';
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"url": "https://github.com/handsontable/handsontable/issues"
|
11
11
|
},
|
12
12
|
"author": "Handsoncode <hello@handsontable.com>",
|
13
|
-
"version": "0.0.0-next-
|
13
|
+
"version": "0.0.0-next-7f8f4f9-20240724",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -165,12 +165,8 @@ class Positioner {
|
|
165
165
|
setPositionOnRightOfCursor() {
|
166
166
|
let left = _classPrivateFieldGet(_cursor, this).left;
|
167
167
|
if (_classPrivateFieldGet(_parentContainer, this)) {
|
168
|
-
const
|
169
|
-
|
170
|
-
} = _classPrivateFieldGet(_parentContainer, this).getBoundingClientRect();
|
171
|
-
|
172
|
-
// move the sub menu by the width of the parent's border (usually by 1-2 pixels)
|
173
|
-
left += _classPrivateFieldGet(_cursor, this).cellWidth + parentMenuRight - (_classPrivateFieldGet(_cursor, this).left + _classPrivateFieldGet(_cursor, this).cellWidth);
|
168
|
+
const borderRightWidth = Number.parseInt(getComputedStyle(_classPrivateFieldGet(_parentContainer, this).querySelector('.htCore')).borderRightWidth, 10);
|
169
|
+
left += _classPrivateFieldGet(_cursor, this).cellWidth + borderRightWidth;
|
174
170
|
} else {
|
175
171
|
left += _classPrivateFieldGet(_offset, this).right;
|
176
172
|
}
|
@@ -183,12 +179,8 @@ class Positioner {
|
|
183
179
|
setPositionOnLeftOfCursor() {
|
184
180
|
let left = _classPrivateFieldGet(_offset, this).left + _classPrivateFieldGet(_cursor, this).left - _classPrivateFieldGet(_container, this).offsetWidth;
|
185
181
|
if (_classPrivateFieldGet(_parentContainer, this)) {
|
186
|
-
const
|
187
|
-
|
188
|
-
} = _classPrivateFieldGet(_parentContainer, this).getBoundingClientRect();
|
189
|
-
|
190
|
-
// move the sub menu by the width of the parent's border (usually by 1-2 pixels)
|
191
|
-
left -= _classPrivateFieldGet(_cursor, this).left - parentMenuLeft;
|
182
|
+
const borderLeftWidth = Number.parseInt(getComputedStyle(_classPrivateFieldGet(_parentContainer, this).querySelector('.htCore')).borderLeftWidth, 10);
|
183
|
+
left -= borderLeftWidth;
|
192
184
|
}
|
193
185
|
_classPrivateFieldGet(_container, this).style.left = `${left}px`;
|
194
186
|
}
|
@@ -162,12 +162,8 @@ export class Positioner {
|
|
162
162
|
setPositionOnRightOfCursor() {
|
163
163
|
let left = _classPrivateFieldGet(_cursor, this).left;
|
164
164
|
if (_classPrivateFieldGet(_parentContainer, this)) {
|
165
|
-
const
|
166
|
-
|
167
|
-
} = _classPrivateFieldGet(_parentContainer, this).getBoundingClientRect();
|
168
|
-
|
169
|
-
// move the sub menu by the width of the parent's border (usually by 1-2 pixels)
|
170
|
-
left += _classPrivateFieldGet(_cursor, this).cellWidth + parentMenuRight - (_classPrivateFieldGet(_cursor, this).left + _classPrivateFieldGet(_cursor, this).cellWidth);
|
165
|
+
const borderRightWidth = Number.parseInt(getComputedStyle(_classPrivateFieldGet(_parentContainer, this).querySelector('.htCore')).borderRightWidth, 10);
|
166
|
+
left += _classPrivateFieldGet(_cursor, this).cellWidth + borderRightWidth;
|
171
167
|
} else {
|
172
168
|
left += _classPrivateFieldGet(_offset, this).right;
|
173
169
|
}
|
@@ -180,12 +176,8 @@ export class Positioner {
|
|
180
176
|
setPositionOnLeftOfCursor() {
|
181
177
|
let left = _classPrivateFieldGet(_offset, this).left + _classPrivateFieldGet(_cursor, this).left - _classPrivateFieldGet(_container, this).offsetWidth;
|
182
178
|
if (_classPrivateFieldGet(_parentContainer, this)) {
|
183
|
-
const
|
184
|
-
|
185
|
-
} = _classPrivateFieldGet(_parentContainer, this).getBoundingClientRect();
|
186
|
-
|
187
|
-
// move the sub menu by the width of the parent's border (usually by 1-2 pixels)
|
188
|
-
left -= _classPrivateFieldGet(_cursor, this).left - parentMenuLeft;
|
179
|
+
const borderLeftWidth = Number.parseInt(getComputedStyle(_classPrivateFieldGet(_parentContainer, this).querySelector('.htCore')).borderLeftWidth, 10);
|
180
|
+
left -= borderLeftWidth;
|
189
181
|
}
|
190
182
|
_classPrivateFieldGet(_container, this).style.left = `${left}px`;
|
191
183
|
}
|