mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JBInsets
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.intellij.ui;
|
||||
|
||||
import com.intellij.util.ui.JBUI;
|
||||
import org.intellij.lang.annotations.MagicConstant;
|
||||
|
||||
import javax.swing.border.LineBorder;
|
||||
@@ -45,7 +46,7 @@ public class SideBorder extends LineBorder {
|
||||
|
||||
@Override
|
||||
public Insets getBorderInsets(Component component) {
|
||||
return new Insets(
|
||||
return JBUI.insets(
|
||||
(mySideMask & TOP) != 0 ? getThickness() : 0,
|
||||
(mySideMask & LEFT) != 0 ? getThickness() : 0,
|
||||
(mySideMask & BOTTOM) != 0 ? getThickness() : 0,
|
||||
|
||||
Reference in New Issue
Block a user