private Dimension getPreferredDimensionForComponent(Component component,
			Dimension standardSize) {

		Dimension preferredDimension = component.getPreferredSize();

		// a grid layout uses the standard width
		if (grid) {
			preferredDimension.width = standardSize.width;
		}

		return preferredDimension;
	}
@see javax.swing.Scrollable#getScrollableUnitIncrement(java.awt.Rectangle, int, int)
Ghidra/Framework/Docking/src/main/java/docking/widgets/VariableHeightPanel.java