IDEA-257029 IntelliJ IDEA 2020.3 GUI: Configuration Window textfield does not scale...
authorDmitry Avdeev <dmitry.avdeev@jetbrains.com>
Mon, 14 Dec 2020 10:46:50 +0000 (13:46 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Mon, 14 Dec 2020 10:48:42 +0000 (10:48 +0000)
GitOrigin-RevId: 89f575c8640840b4d992878ccd4d6e4eda0382bf

platform/execution-impl/src/com/intellij/execution/ui/CommonParameterFragments.java

index 7a618fb17efc94048188d3ffd40ffdfcbb3f8bb8..337fc439f3528a77ee32694ba83459a8a797c376 100644 (file)
@@ -19,6 +19,7 @@ import com.intellij.openapi.vfs.LocalFileSystem;
 import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.ui.RawCommandLineEditor;
 import com.intellij.ui.components.fields.ExtendableTextField;
+import com.intellij.util.ui.JBUI;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
@@ -144,6 +145,6 @@ public class CommonParameterFragments<Settings extends CommonProgramRunConfigura
   }
 
   public static void setMonospaced(Component field) {
-    field.setFont(EditorUtil.getEditorFont());
+    field.setFont(EditorUtil.getEditorFont().deriveFont(Font.PLAIN, JBUI.Fonts.label().getSize()));
   }
 }