mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
HiDPI: scale hgap and vgap
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package com.intellij.util.ui.components;
|
||||
|
||||
import com.intellij.util.ui.JBUI;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
@@ -26,7 +28,7 @@ public class BorderLayoutPanel extends JBPanel<BorderLayoutPanel> {
|
||||
}
|
||||
|
||||
public BorderLayoutPanel(int hgap, int vgap) {
|
||||
super(new BorderLayout(hgap, vgap));
|
||||
super(new BorderLayout(JBUI.scale(hgap), JBUI.scale(vgap)));
|
||||
}
|
||||
|
||||
public BorderLayoutPanel add(Component comp) {
|
||||
|
||||
Reference in New Issue
Block a user