Dimension () { Dimension defaultSize = super.getPreferredScrollableViewportSize(); if (mySplitter != null && mySplitter.getSecondComponent() != null && Registry.is("ide.find.expand.search.field.on.typing", true)) { Dimension preferredSize = getPreferredSize(); Dimension minimumSize = getMinimumSize(); int spaceForLeftPanel = mySplitter.getWidth() - mySplitter.getSecondComponent().getPreferredSize().width - mySplitter.getDividerWidth(); int allSearchTextAreaIcons = JBUI.scale(180); int w = spaceForLeftPanel - allSearchTextAreaIcons; w = Math.max(w, minimumSize.width); return new Dimension(Math.min(Math.max(defaultSize.width, preferredSize.width), w), defaultSize.height); } return defaultSize; }