void () { RadContainer theContainer = null; for (RadContainer container = this instanceof RadContainer ? (RadContainer)this : getParent(); container != null; container = container.getParent()) { final RadContainer parent = container.getParent(); if (parent != null && parent.isXY()) { final Dimension size = container.getSize(); final Dimension minimumSize = container.getMinimumSize(); if (size.width < minimumSize.width || size.height < minimumSize.height) { theContainer = container; } } } if (theContainer != null) { final Dimension minimumSize = theContainer.getMinimumSize(); minimumSize.width = Math.max(minimumSize.width, theContainer.getWidth()); minimumSize.height = Math.max(minimumSize.height, theContainer.getHeight()); theContainer.getDelegee().setSize(minimumSize); } myDelegee.revalidate(); }