@mpxjs/webpack-plugin 2.10.7-beta.2 → 2.10.7-beta.3

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.
@@ -533,19 +533,8 @@ export const useLayout = ({ props, hasSelfPercent, setWidth, setHeight, onLayout
533
533
  }
534
534
  if (enableOffset) {
535
535
  nodeRef.current?.measure((x, y, width, height, offsetLeft, offsetTop) => {
536
- const { y: navigationY = 0 } = navigation?.layout || {};
537
- layoutRef.current = {
538
- x,
539
- y: y - navigationY,
540
- width,
541
- height,
542
- offsetLeft,
543
- offsetTop: offsetTop - navigationY,
544
- _x: x,
545
- _y: y,
546
- _offsetLeft: offsetLeft,
547
- _offsetTop: offsetTop
548
- };
536
+ const { top: navigationY = 0 } = navigation?.layout || {};
537
+ layoutRef.current = { x, y: y - navigationY, width, height, offsetLeft, offsetTop: offsetTop - navigationY };
549
538
  });
550
539
  }
551
540
  onLayout && onLayout(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.7-beta.2",
3
+ "version": "2.10.7-beta.3",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"