From 449841b4eb5fa0f0022787db1a40a840bc1f9f94 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Mon, 14 Sep 2026 01:56:48 -0500 Subject: [PATCH] fix(debugtools): draw the title bars above the backdrop, fit the scroll bar The Backdrop of each frame draws its background and border into the BACKGROUND layer, and it is applied after the textures declared in the XML, so a title bar in that layer ends up underneath it. On ScriptErrorsFrame, whose backdrop is the 32px dialog border, the header came out behind the window edge; on EventTraceFrame and TableInspectorFrame the bar is a translucent one inside the frame, so it was buried rather than misplaced. Every Blizzard frame that uses UI-DialogBox-Header puts it in ARTWORK. The title text of all three is in OVERLAY and still reads over the top. ScriptErrorsFrame is also the only frame here that takes its scroll bar from UIPanelScrollFrameTemplate, which hangs the bar off the right edge of the scroll frame rather than inside it, so the bar ran past the border. Narrow the scroll frame, and its child edit box with it, to end where the Close button does. Blizzard's own measurements do not carry over: its ScriptErrorsFrame inherits UIPanelDialogTemplate, a thin GearManager border, not this backdrop. The other two frames place their sliders by hand and already sat inside. --- AddOns/DebugTools/DebugTools.xml | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/AddOns/DebugTools/DebugTools.xml b/AddOns/DebugTools/DebugTools.xml index 2221616f..153cba7e 100644 --- a/AddOns/DebugTools/DebugTools.xml +++ b/AddOns/DebugTools/DebugTools.xml @@ -60,7 +60,11 @@ - + + @@ -278,7 +282,12 @@ - + + @@ -322,8 +331,16 @@ ScriptErrorsFrame_TitleButton_OnDragStop(); + - + @@ -331,7 +348,7 @@ - + this:ClearFocus(); this:HighlightText(0); @@ -437,7 +454,9 @@ - + +