From 21a73e146bff1b5c1c2b65b2a1bae60edf447913 Mon Sep 17 00:00:00 2001 From: Alexander Lobas Date: Tue, 18 Jun 2024 18:32:54 +0200 Subject: [PATCH] IJPL-155823 Impossible to move tool window from bottom to top position by drag-and-drop GitOrigin-RevId: 7999b778f15c04324005c6fa45809d57a837a309 --- .../src/com/intellij/toolWindow/ToolWindowToolbar.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowToolbar.kt b/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowToolbar.kt index 471de455b901..bdd01dffff14 100644 --- a/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowToolbar.kt +++ b/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowToolbar.kt @@ -183,7 +183,7 @@ abstract class ToolWindowToolbar(private val isPrimary: Boolean, val anchor: Too } if (anchor == ToolWindowAnchor.BOTTOM) { val rootBounds = Rectangle(rootPane.locationOnScreen, rootPane.size) - val toolWindowHeight = max(getFirstVisibleToolWindowSize(false), toolBar.height) + val toolWindowHeight = max(getFirstVisibleToolWindowSize(false), height + JBUI.scale(40)) val bounds = Rectangle(rootBounds.x, rootBounds.y + rootBounds.height - toolWindowHeight - getStatusBarHeight(), rootBounds.width / 2, toolWindowHeight) if (split) {