@Override
		public void mouseDragged(MouseEvent e) {
			if (grabbedRegion == 0) {
				return;
			}
			Dimension size = completionWindow.getSize();
			if ((grabbedRegion & REGION_E) != 0) {
				size.width = Math.max(MIN_WIDTH, e.getXOnScreen() - completionWindow.getX() + xoff);
			}
			if ((grabbedRegion & REGION_S) != 0) {
				size.height =
					Math.max(MIN_HEIGHT, e.getYOnScreen() - completionWindow.getY() + yoff);
			}
			completionWindow.setSize(size);
		}
A mouse listener that resizes the auto-completion list window
Ghidra/Framework/Docking/src/main/java/docking/widgets/autocomplete/TextFieldAutocompleter.java