Browse Source

Fixed dialog button alignment

Tig Kindel 2 years ago
parent
commit
8d0c709806
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Windows/Dialog.cs

+ 1 - 1
Terminal.Gui/Windows/Dialog.cs

@@ -173,7 +173,7 @@ namespace Terminal.Gui {
 			if (buttons.Count == 0) {
 				return 0;
 			}
-			return buttons.Select (b => b.Bounds.Width).Sum ();
+			return buttons.Select (b => b.Frame.Width).Sum ();
 		}
 
 		/// <summary>