@Override
		public Dimension preferredLayoutSize(Container parent) {
			Insets insets = parent.getInsets();
			int n = parent.getComponentCount();
			int height = 0;
			int width = columnModel.getTotalColumnWidth();

			for (int i = 0; i < n; i++) {
				Component c = parent.getComponent(i);
				Dimension d = c.getPreferredSize();
				height = Math.max(height, d.height);
			}
			return new Dimension(width + insets.left + insets.right,
				height + insets.top + insets.bottom);

		}
Resets the named component back to its preferred size.
@param viewName the name of the component to restore to its preferred size
Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/InteractivePanelManager.java