mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-332821 Inline banner: Wrong insets near 'Close', 'Settings' buttons
GitOrigin-RevId: f07f86c4551bb24feb41e2e41914780f9aa07b46
This commit is contained in:
committed by
intellij-monorepo-bot
parent
819b1d9cd6
commit
72275a3fbe
@@ -71,7 +71,7 @@ open class InlineBanner(background: Color, private var myBorderColor: Color, ico
|
||||
override fun layoutContainer(target: Container) {
|
||||
super.layoutContainer(target)
|
||||
|
||||
val y = JBUI.scale(9)
|
||||
val y = JBUI.scale(7)
|
||||
var x = target.width - JBUI.scale(7)
|
||||
|
||||
if (myCloseButton.isVisible) {
|
||||
@@ -157,7 +157,7 @@ open class InlineBanner(background: Color, private var myBorderColor: Color, ico
|
||||
paintHover(g, if (myClick) JBUI.CurrentTheme.InlineBanner.PRESSED_BACKGROUND else JBUI.CurrentTheme.InlineBanner.HOVER_BACKGROUND)
|
||||
}
|
||||
}
|
||||
button.preferredSize = JBDimension(22, 22)
|
||||
button.preferredSize = JBDimension(26, 26)
|
||||
return button
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user