Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
basvanmeurs committed Apr 15, 2020
1 parent 94880ba commit e213713
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/FlexTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,6 @@ export default class FlexTarget implements FlexSubject {
return this._optFlags & 12;
}

private getLayoutParent() {
let current: FlexTarget = this.getParent()!;
while (current.skipInLayout) {
const parent = current.getParent();
if (!parent) return current;
current = parent;
}
return current;
}

update() {
// Parent width or height could have been changed while we are using relative dimension functions.
// Width or height might have been changed, which affects the flexbox layout.
Expand Down Expand Up @@ -197,6 +187,16 @@ export default class FlexTarget implements FlexSubject {
}
}

private getLayoutParent() {
let current: FlexTarget = this.getParent()!;
while (current.skipInLayout) {
const parent = current.getParent();
if (!parent) return current;
current = parent;
}
return current;
}

protected onChangedLayout() {
// This is invoked when layout coordinates were changed.
}
Expand Down

0 comments on commit e213713

Please sign in to comment.