public void viewportStateChanged() {
		Dimension extentSize = viewport.getExtentSize();
		if (!extentSize.equals(visibleSize)) {
			visibleSize = new Dimension(extentSize);
			indexMapper.setVisibleViewHeight(extentSize.height);
			comp.invalidate();
			repaint();
		}
		Point viewPosition = viewport.getViewPosition();
		if (verticalOffset != viewPosition.y) {
			verticalOffset = viewPosition.y;
			comp.setLocation(0, verticalOffset);
			if (!programaticallyAdjustingScrollbar) {
				scrollable.showIndex(indexMapper.getIndex(verticalOffset),
					indexMapper.getVerticalOffset(verticalOffset));
			}
		}
	}
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