/** * @see Content#refreshUp() */ @Override public final void refreshUp() { Rectangle2D minimalBounds = getMinimalBounds(); setHeight(minimalBounds.getHeight()); setWidth(minimalBounds.getWidth()); setContentsHeight(minimalBounds.getWidth()); super.refreshUp(); }