Skip to content

Commit

Permalink
fix: typo #104
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed Nov 5, 2020
1 parent 0253086 commit 04ef784
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
14 changes: 4 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20654,14 +20654,8 @@
container = root;
}

parent.__layoutAbs(container, null, node);
parent.__layoutAbs(container, null, node); // 前后都是abs无需偏移后面兄弟

console.log(1);

var arr = node.__modifyStruct(root, diffI);

diffI += arr[1];
diffList.push(arr); // 前后都是abs无需偏移后面兄弟

if (isLastAbs) {
return;
Expand Down Expand Up @@ -20823,10 +20817,10 @@


if (component) {
var _arr = node.__modifyStruct(root, diffI);
var arr = node.__modifyStruct(root, diffI);

diffI += _arr[1];
diffList.push(_arr);
diffI += arr[1];
diffList.push(arr);

if (cs.position !== position && (cs.position === 'static' || position === 'static') || cs.zIndex !== zIndex) {
node.domParent.__updateStruct(root.__structs);
Expand Down
2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions src/node/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -1097,10 +1097,7 @@ class Root extends Dom {
if(!container) {
container = root;
}
parent.__layoutAbs(container, null, node); console.log(1);
let arr = node.__modifyStruct(root, diffI);
diffI += arr[1];
diffList.push(arr);
parent.__layoutAbs(container, null, node);
// 前后都是abs无需偏移后面兄弟
if(isLastAbs) {
return;
Expand Down

0 comments on commit 04ef784

Please sign in to comment.