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/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-5b6e8d3-20240724";
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-5b6e8d3-20240724";
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-5b6e8d3-20240724",
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
- right: parentMenuRight
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
- left: parentMenuLeft
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
- right: parentMenuRight
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
- left: parentMenuLeft
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
  }