From 1e469a9a00f2a5b396f39c6fc5561c1af2c745cd Mon Sep 17 00:00:00 2001 From: "Liana.Bakradze" Date: Mon, 24 Jul 2017 16:07:21 +0300 Subject: [PATCH] EDU-1019 Teacher/student dialog displayed incorrectly on large displays --- .../src/com/jetbrains/python/edu/CustomizeEduStepPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/educational-python/src/com/jetbrains/python/edu/CustomizeEduStepPanel.java b/python/educational-python/src/com/jetbrains/python/edu/CustomizeEduStepPanel.java index b2f1749914da..5c8f2bcedf10 100644 --- a/python/educational-python/src/com/jetbrains/python/edu/CustomizeEduStepPanel.java +++ b/python/educational-python/src/com/jetbrains/python/edu/CustomizeEduStepPanel.java @@ -2,6 +2,7 @@ package com.jetbrains.python.edu; import com.intellij.ide.util.PropertiesComponent; import com.intellij.openapi.ui.VerticalFlowLayout; +import com.intellij.util.ui.JBUI; import icons.PythonEducationalIcons; import javax.swing.*; @@ -17,7 +18,7 @@ public class CustomizeEduStepPanel extends JPanel { final FlowLayout layout = new FlowLayout(); layout.setHgap(20); setLayout(layout); - int iconSize = 180; + int iconSize = JBUI.scale(180); final JPanel studentPanel = new JPanel(new VerticalFlowLayout()); final JLabel teacher = new JLabel(PythonEducationalIcons.Teacher); myStudent = new JLabel(PythonEducationalIcons.StudentHover);