From fb01ea96de8cb9a7764cc652fbb42f1043828618 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Wed, 12 Jul 2017 16:08:41 +0200 Subject: [PATCH] IDEA-175235 Drop down menu from a toolbar button should be below the button --- .../com/intellij/openapi/actionSystem/impl/ActionButton.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButton.java b/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButton.java index 9b143a8201ca..7e38b1a73777 100644 --- a/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButton.java +++ b/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButton.java @@ -179,7 +179,7 @@ public class ActionButton extends JComponent implements ActionButtonComponent, A } }); popupMenu.setDataContextProvider(() -> this.getDataContext()); - if (ActionPlaces.isToolbarPlace(event.getPlace())) { + if (event.isActionToolbar()) { popupMenu.getComponent().show(this, 0, getHeight()); } else {