src/main/java/com/mxgraph/swing/mxGraphComponent.java
public void scrollRectToVisible(Rectangle aRect, boolean extend)
		{
			super.scrollRectToVisible(aRect);

			if (extend)
			{
				extendComponent(aRect);
			}
		}
/**
		 * Overrides parent method to add extend flag for making the control
		 * larger during previews.
		 */
Overrides parent method to add extend flag for making the control
larger during previews.
Overrides parent method to add extend flag for making the control larger during previews .
public void scrollRectToVisible(Rectangle aRect, boolean extend)
		{
			super.scrollRectToVisible(aRect);
			if (extend)
			{
				extendComponent(aRect);
			}
		}
public void scrollRectToVisible ( Rectangle aRect , boolean extend ) { super . scrollRectToVisible ( aRect ) ; if ( extend ) { extendComponent ( aRect ) ; } }
Overrides parent method to add extend flag for making the control
 larger during previews.
Overrides parent method to add extend flag for making the control larger during previews .