@Override
		public void mousePressed(MouseEvent e) {
			grabbedRegion = getRegion(e);
			xoff = completionWindow.getWidth() - e.getX();
			yoff = completionWindow.getHeight() - e.getY();
		}
A mouse listener that resizes the auto-completion list window
Ghidra/Framework/Docking/src/main/java/docking/widgets/autocomplete/TextFieldAutocompleter.java