Cosmetics Make actions panel in hints dialog closer to hints text field
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Fri, 29 Jul 2016 13:32:35 +0000 (16:32 +0300)
committerValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Fri, 29 Jul 2016 15:07:27 +0000 (18:07 +0300)
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/ui/CCCreateAnswerPlaceholderPanel.java

index e73ecc9f45224bd953032478030a1fb10d8d029b..399bc6c6ece98c89c1eb50a065255c4e27dfd2e3 100644 (file)
@@ -8,6 +8,7 @@ import com.intellij.openapi.actionSystem.DefaultActionGroup;
 import com.intellij.ui.ColorUtil;
 import com.intellij.ui.JBColor;
 import com.intellij.ui.components.JBLabel;
+import com.intellij.uiDesigner.core.GridLayoutManager;
 import com.intellij.util.ui.UIUtil;
 import com.jetbrains.edu.learning.courseFormat.AnswerPlaceholder;
 import org.jetbrains.annotations.NotNull;
@@ -42,6 +43,7 @@ public class CCCreateAnswerPlaceholderPanel {
 
     myPlaceholderTextArea.setBorder(BorderFactory.createLineBorder(JBColor.border()));
     myHintsPanel.setBorder(BorderFactory.createLineBorder(JBColor.border()));
+    ((GridLayoutManager)myHintsPanel.getLayout()).setHGap(1);
 
     myHintTextArea.setFont(myPlaceholderTextArea.getFont());
     myHintTextArea.addFocusListener(createFocusListenerToSetDefaultHintText());