@leafer/layout 1.5.1 → 1.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/layout",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "@leafer/layout",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,11 +22,11 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/math": "1.5.1",
26
- "@leafer/helper": "1.5.1",
27
- "@leafer/platform": "1.5.1"
25
+ "@leafer/math": "1.5.2",
26
+ "@leafer/helper": "1.5.2",
27
+ "@leafer/platform": "1.5.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@leafer/interface": "1.5.1"
30
+ "@leafer/interface": "1.5.2"
31
31
  }
32
32
  }
package/src/LeafLayout.ts CHANGED
@@ -122,7 +122,11 @@ export class LeafLayout implements ILeafLayout {
122
122
  } else {
123
123
  let root = this.leaf
124
124
  while (root.parent && !root.parent.leafer) { root = root.parent }
125
- Platform.layout(root)
125
+ const r = root as any
126
+ if (r.__fullLayouting) return // fix: 循环
127
+ r.__fullLayouting = true
128
+ Platform.layout(r)
129
+ delete r.__fullLayouting
126
130
  }
127
131
  }
128
132