@Override public void updateBounds( Root root, double x, double y, double factorW, double factorH ) { Rectangle current = root.getCurrentBounds(); Rectangle bounds = root.getBounds(); boolean resize = isResize( root ); if( resize ){ resize = current.width > 10 && current.height > 10 && bounds.width > 10 && bounds.height > 10; } if( resize ){ try{ root.setBaseBounds( current ); super.updateBounds( root, x, y, factorW, factorH ); } finally{ root.setBaseBounds( null ); } updateBoundsLocked( root, x, y, factorW, factorH ); } else{ super.updateBounds( root, x, y, factorW, factorH ); } }