Skip to content

Commit f233166

Browse files
author
Sergiy Zhovnir
committed
#issue-57 Fixed positioning of new controller dialog
1 parent 5bce7f7 commit f233166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/magento/idea/magento2plugin/actions/generation/dialog/NewControllerDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public NewControllerDialog(Project project, PsiDirectory directory) {
5454
setContentPane(contentPane);
5555
setModal(true);
5656
getRootPane().setDefaultButton(buttonOK);
57-
pushToMiddle();
5857
suggestControllerDirectory();
5958
controllerAreaSelect.addActionListener(e -> suggestControllerDirectory());
6059
controllerAreaSelect.addActionListener(e -> toggleAdminPanel());
@@ -105,6 +104,7 @@ public String getActionName() {
105104
public static void open(Project project, PsiDirectory directory) {
106105
NewControllerDialog dialog = new NewControllerDialog(project, directory);
107106
dialog.pack();
107+
dialog.centerDialog(dialog);
108108
dialog.setVisible(true);
109109
}
110110

0 commit comments

Comments
 (0)