From b66299049c2e5595fedb52a7c5329ccaa532ab78 Mon Sep 17 00:00:00 2001 From: "Arseny.Chernyaev" Date: Wed, 22 Oct 2025 13:37:36 +0100 Subject: [PATCH] [rider-debugger] RIDER-127723 put thread descriptions at the bottom of the frames view; place frames ad above it (cherry picked from commit 5b84c9b531be5ed67f05ead222ac8f53c0689e01) NET-MR-17485 GitOrigin-RevId: bf766da30f68ae1997785e9cc602b8673965673b --- .../xdebugger/impl/frame/XThreadsFramesView.kt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XThreadsFramesView.kt b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XThreadsFramesView.kt index 839520b9fe07..fece5954f97a 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XThreadsFramesView.kt +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XThreadsFramesView.kt @@ -51,7 +51,7 @@ class XThreadsFramesView(val debugTab: XDebugSessionTab3, private val sessionPro private val myFramesList = XDebuggerFramesList(debugTab.project, sessionProxy) private val myDescriptionPanel = JPanel(BorderLayout()).apply { - border = JBEmptyBorder(0, 20, 0, 0) + border = JBEmptyBorder(0) } private val mySplitter: NonProportionalOnePixelSplitter @@ -154,9 +154,13 @@ class XThreadsFramesView(val debugTab: XDebugSessionTab3, private val sessionPro val frameListWrapper = JPanel(BorderLayout(0, 0)) - frameListWrapper.add(myDescriptionPanel, BorderLayout.NORTH) - addFramesNavigationAd(frameListWrapper) - frameListWrapper.add(myFramesList.withSpeedSearch().toScrollPane(), BorderLayout.CENTER) + val framesWrapper = JPanel(BorderLayout()).apply { + add(myFramesList.withSpeedSearch().toScrollPane(), BorderLayout.CENTER) + addFramesNavigationAd(this) + } + frameListWrapper.add(framesWrapper, BorderLayout.CENTER) + + frameListWrapper.add(myDescriptionPanel, BorderLayout.SOUTH) frameListWrapper.minimumSize = minimumDimension splitter.secondComponent = frameListWrapper @@ -170,7 +174,7 @@ class XThreadsFramesView(val debugTab: XDebugSessionTab3, private val sessionPro descriptionComponentProvider.currentDescriptionComponent.collect { myDescriptionPanel.removeAll() if (it != null) { - myDescriptionPanel.add(it) + myDescriptionPanel.add(it, BorderLayout.CENTER) } myDescriptionPanel.revalidate() myDescriptionPanel.repaint()