@Override
		public Dimension getPreferredScrollableViewportSize() {
			int preferredHeight = useViewSizeAsPreferredSize ? indexMapper.getViewHeight() : 500;
			int viewWidth = comp.getPreferredSize().width;
			return new Dimension(viewWidth, preferredHeight);
		}
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