mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
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:
committed by
intellij-monorepo-bot
parent
3acf7e90be
commit
fa240217a4
@@ -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()) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user