@Override
		public Dimension preferredLayoutSize(Container parent) {
			Dimension compPreferredSize = comp.getPreferredSize();
			int height = Math.max(indexMapper.getViewHeight(), visibleSize.height);
			int viewWidth = compPreferredSize.width;
			return new Dimension(viewWidth, height);
		}
Sets this scroll pane to never show scroll bars. This is useful when you want a container
whose view is always as big as the component in this scroll pane.
@param b true to never scroll
Ghidra/Framework/Docking/src/main/java/docking/widgets/indexedscrollpane/IndexedScrollPane.java