mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-144749 Popup is not sized correctly - incorrect method used
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user