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

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.
@@ -617,19 +617,8 @@ export const useLayout = ({ props, hasSelfPercent, setWidth, setHeight, onLayout
617
617
  }
618
618
  if (enableOffset) {
619
619
  nodeRef.current?.measure((x: number, y: number, width: number, height: number, offsetLeft: number, offsetTop: number) => {
620
- const { y: navigationY = 0 } = navigation?.layout || {}
621
- layoutRef.current = {
622
- x,
623
- y: y - navigationY,
624
- width,
625
- height,
626
- offsetLeft,
627
- offsetTop: offsetTop - navigationY,
628
- _x: x,
629
- _y: y,
630
- _offsetLeft: offsetLeft,
631
- _offsetTop: offsetTop
632
- }
620
+ const { top: navigationY = 0 } = navigation?.layout || {}
621
+ layoutRef.current = { x, y: y - navigationY, width, height, offsetLeft, offsetTop: offsetTop - navigationY }
633
622
  })
634
623
  }
635
624
  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.1",
3
+ "version": "2.10.7-beta.2",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"