mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Update Dialog.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -184,9 +184,12 @@ public class Dialog : Window
|
||||
// Find the maximum button height
|
||||
var maxHeight = 1; // Default to minimum height of 1 for buttons
|
||||
|
||||
foreach (Button button in _buttons.Where (b => b.Frame.Height > maxHeight))
|
||||
foreach (Button button in _buttons)
|
||||
{
|
||||
maxHeight = button.Frame.Height;
|
||||
if (button.Frame.Height > maxHeight)
|
||||
{
|
||||
maxHeight = button.Frame.Height;
|
||||
}
|
||||
}
|
||||
|
||||
// Set the bottom padding to match button height
|
||||
|
||||
Reference in New Issue
Block a user