From 8cce17866e4d7dba217b493a8b115f480bbbeaa8 Mon Sep 17 00:00:00 2001 From: Kirill Kalishev Date: Thu, 25 Jan 2007 19:02:39 +0300 Subject: [PATCH] toolbar AUTO_LAYOUT_POLICY - preferred width --- .../com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java b/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java index 3cdee79411..7637e65283 100644 --- a/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java +++ b/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java @@ -535,6 +535,11 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar { yBottom = Math.max(yBottom, bounds.y + bounds.height); } final Dimension dimension = new Dimension(xRight - xLeft, yBottom - yTop); + + if (myLayoutPolicy == AUTO_LAYOUT_POLICY) { + dimension.width += myAutoPopupIcon.getIconWidth(); + } + return dimension; } -- 2.11.4.GIT