IDEA-344588 Fix button position when tab DnD is enabled

closes https://github.com/JetBrains/intellij-community/pull/2651

GitOrigin-RevId: 74a018deef82488576c326efd77b770cef29cdc9
This commit is contained in:
Sergey Prigogin
2024-01-30 19:41:26 -08:00
committed by intellij-monorepo-bot
parent 3acf7e90be
commit fa240217a4

View File

@@ -222,7 +222,7 @@ abstract class ToolWindowHeader internal constructor(
}
// Makes sure toolbar stays after the tab component
val allowDnd = ClientProperty.isTrue(toolWindow.component as Component?, ToolWindowContentUi.ALLOW_DND_FOR_TABS)
westPanel.add(contentUi.tabComponent, if (allowDnd) CC().grow().pushX() else CC().growY())
westPanel.add(contentUi.tabComponent, if (allowDnd) CC().grow() else CC().growY())
toolbarWest?.apply { westPanel.add(component, CC().pushX()) }
}