IDEA-144749 Popup is not sized correctly - incorrect method used

This commit is contained in:
Egor.Ushakov
2015-09-04 15:21:40 +03:00
parent 122c91b548
commit f2f4ef56ba
@@ -1273,7 +1273,7 @@ public class AbstractPopup implements JBPopup {
if (size.width > delta) {
size.width = delta;
// we shrank horizontally - need to increase height to fit the horizontal scrollbar
JScrollPane scrollPane = JBScrollPane.findScrollPane(myContent);
JScrollPane scrollPane = ScrollUtil.findScrollPane(myContent);
if (scrollPane != null && scrollPane.getHorizontalScrollBarPolicy() != ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER) {
JScrollBar scrollBar = scrollPane.getHorizontalScrollBar();
if (scrollBar != null) {