diff --git a/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java b/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java index 9306e42478e5..e9cb1260b67d 100644 --- a/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java +++ b/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java @@ -206,6 +206,7 @@ public class BackgroundImageDialog extends DialogWrapper { actionGroup.add(createToggleAction(EDITOR, IdeBundle.message("toggle.editor.and.tools"))); actionGroup.add(createToggleAction(FRAME, IdeBundle.message("toggle.empty.frame"))); myToolbar = ActionManager.getInstance().createActionToolbar(getTitle(), actionGroup, true); + myToolbar.setTargetComponent(myToolbar.getComponent()); JComponent toolbarComponent = myToolbar.getComponent(); toolbarComponent.setBorder(JBUI.Borders.empty()); myTargetPanel.add(toolbarComponent);