Skip to content

Commit 8cebfa5

Browse files
finish new measure
1 parent ed7931c commit 8cebfa5

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/br/nullexcept/mux/view/View.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,12 @@ public void measure() {
258258
if (parent == null)
259259
return;
260260

261-
parent.measureChild(this);
261+
if (parent.measureChild(this)) {
262+
ViewGroup.LayoutParams pp = parent.getLayoutParams();
263+
if (pp.width < 0 || pp.height < 0) {
264+
parent.measure();
265+
}
266+
}
262267
}
263268

264269
protected Size onMeasureContent() {

src/br/nullexcept/mux/view/ViewGroup.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public void requestLayout() {
3333
invalidate();
3434
} else {
3535
measure();
36-
measureBounds();
3736
}
3837
}
3938

0 commit comments

Comments
 (0)