Skip to content

Commit

Permalink
[495400] Ensure nesting nodes are not resized to 0, 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwienand committed Dec 14, 2016
1 parent f0b11fc commit 5b2c497
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,10 @@ protected void doRefreshVisual(Group visual) {

Dimension size = ZestProperties.getSize(node);
if (size != null) {
if (!size.equals(getVisualSize())) {
getVisual().resize(size.width, size.height);
}
// XXX: Resize is needed even though the visual size is already
// up-to-date, because otherwise a nesting node might be resized to
// 0, 0 (unknown reason, need debug).
getVisual().resize(size.width, size.height);
} else {
getVisual().autosize();
}
Expand Down

0 comments on commit 5b2c497

Please sign in to comment.