Explorar o código

Fixed dialog button alignment

Tig Kindel %!s(int64=2) %!d(string=hai) anos
pai
achega
8d0c709806
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>