@Override
	public Dimension preferredLayoutSize(Container parent) {
		if (parent.getParent() != null) {
			return getPreferredSize(parent, parent.getParent().getSize().width);
		}
		return getPreferredSize(parent, 0);
	}
@see javax.swing.Scrollable#getScrollableUnitIncrement(java.awt.Rectangle, int, int)
Ghidra/Framework/Docking/src/main/java/docking/widgets/VariableHeightPanel.java