Przeglądaj źródła

Fixed dialog button alignment

Tig Kindel 2 lat temu
rodzic
commit
8d0c709806
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {
 			if (buttons.Count == 0) {
 				return 0;
 				return 0;
 			}
 			}
-			return buttons.Select (b => b.Bounds.Width).Sum ();
+			return buttons.Select (b => b.Frame.Width).Sum ();
 		}
 		}
 
 
 		/// <summary>
 		/// <summary>