From fde62e30ad5db4f219d8c3311403eb13a2b6ddcb Mon Sep 17 00:00:00 2001 From: Alexey Pegov Date: Thu, 28 Jan 2010 17:58:53 +0300 Subject: [PATCH] IDEA-51824 Task list menu unavailable with scroll bar --- .../platform-impl/src/com/intellij/ui/popup/WizardPopup.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/ui/popup/WizardPopup.java b/platform/platform-impl/src/com/intellij/ui/popup/WizardPopup.java index fdb9f6763bb7..ea45e3b56648 100644 --- a/platform/platform-impl/src/com/intellij/ui/popup/WizardPopup.java +++ b/platform/platform-impl/src/com/intellij/ui/popup/WizardPopup.java @@ -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); } }