mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-51824 Task list menu unavailable with scroll bar
This commit is contained in:
@@ -288,6 +288,10 @@ public abstract class WizardPopup extends AbstractPopup implements ActionListene
|
||||
int resultWidth = ofContent.width > MAX_SIZE.width ? MAX_SIZE.width : ofContent.width;
|
||||
int resultHeight = ofContent.height > MAX_SIZE.height ? MAX_SIZE.height : ofContent.height;
|
||||
|
||||
if (ofContent.height > MAX_SIZE.height) {
|
||||
resultWidth += new JScrollPane().getVerticalScrollBar().getPreferredSize().getWidth();
|
||||
}
|
||||
|
||||
return new Dimension(resultWidth, resultHeight);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user