From b460488395e2e6cbf26e9e178687fd4e92e2efc3 Mon Sep 17 00:00:00 2001 From: Denis Zhdanov Date: Fri, 18 Feb 2011 12:27:04 +0300 Subject: [PATCH] IDEA-65654 Documentation window: Do not show 'font size' control when I click the text Quick doc font size control is not shown on mouse clicks on quick doc component now --- .../codeInsight/documentation/DocumentationComponent.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java b/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java index 57db3560c001..665c62d71953 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java @@ -719,6 +719,9 @@ public class DocumentationComponent extends JPanel implements Disposable { } public void hideSettings() { + if (!mySettingsPanel.isVisible()) { + return; + } AnActionEvent event = new AnActionEvent( null, EMPTY_DATA_CONTEXT, ActionPlaces.JAVADOC_INPLACE_SETTINGS, myPresentation, ActionManager.getInstance(), 0 );