From 6f3501f3c225ea11a805f18c4a2beb8e19c10db5 Mon Sep 17 00:00:00 2001 From: Konstantin Hudyakov Date: Thu, 26 Oct 2023 19:39:39 +0300 Subject: [PATCH] IDEA-336399 Presentation Assistant: fix small bottom border when only title is showing There was an overlap of the label with the border for 2px. GitOrigin-RevId: c740ad3ea892592e6f340917e41bbc31b407f128 --- .../ide/impl/presentationAssistant/ActionInfoPanel.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/platform/ide/impl/presentationAssistant/ActionInfoPanel.kt b/platform/platform-impl/src/com/intellij/platform/ide/impl/presentationAssistant/ActionInfoPanel.kt index aa390f78c581..c78935481a67 100644 --- a/platform/platform-impl/src/com/intellij/platform/ide/impl/presentationAssistant/ActionInfoPanel.kt +++ b/platform/platform-impl/src/com/intellij/platform/ide/impl/presentationAssistant/ActionInfoPanel.kt @@ -33,11 +33,11 @@ internal class ActionInfoPanel(textData: TextData, private val appearance: Actio layout = GridLayout() border = JBUI.Borders.empty(appearance.popupInsets) - val titleSubtitleIntersection = if (appearance.titleSubtitleGap < 0) UnscaledGaps(bottom = -appearance.titleSubtitleGap) else UnscaledGaps.EMPTY + val titleSubtitleIntersection = if (appearance.titleSubtitleGap < 0) UnscaledGaps(top = -appearance.titleSubtitleGap) else UnscaledGaps.EMPTY RowsGridBuilder(this) - .row(resizable = true).cell(component = titleLabel, verticalAlign = VerticalAlign.CENTER, resizableColumn = true, visualPaddings = titleSubtitleIntersection) - .row(resizable = true).cell(component = subtitleLabel, verticalAlign = VerticalAlign.CENTER, resizableColumn = true) + .row(resizable = true).cell(component = titleLabel, verticalAlign = VerticalAlign.CENTER, resizableColumn = true) + .row(resizable = true).cell(component = subtitleLabel, verticalAlign = VerticalAlign.CENTER, resizableColumn = true, visualPaddings = titleSubtitleIntersection) titleLabel.foreground = appearance.theme.foreground