From 804d874ba01abc6d8dc9dff477e5634577d60e5f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 22 Dec 2025 03:54:01 +0000 Subject: [PATCH] Implement bottom Padding for Dialog buttons - WIP - Modified Dialog.AddButton() to add buttons to Padding when available - Added EndInit() override to move buttons from Dialog to Padding - Added UpdatePaddingBottom() to set Padding thickness based on button height - Added FrameChanged event handler for dynamic padding updates - Updated MessageBox tests to reflect new layout (buttons in separate Padding area) - Dialog tests still passing Co-authored-by: tig <585482+tig@users.noreply.github.com> --- Terminal.Gui/Views/Dialog.cs | 69 ++++++++++++++++++- .../Views/MessageBoxTests.cs | 5 +- 2 files changed, 71 insertions(+), 3 deletions(-) diff --git a/Terminal.Gui/Views/Dialog.cs b/Terminal.Gui/Views/Dialog.cs index ddb813f7a..b0e4de610 100644 --- a/Terminal.Gui/Views/Dialog.cs +++ b/Terminal.Gui/Views/Dialog.cs @@ -49,6 +49,7 @@ public class Dialog : Window } private readonly List