Ver código fonte

Added more documentation to the AutoSize property.

BDisp 4 anos atrás
pai
commit
b460ee712d
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      Terminal.Gui/Core/View.cs

+ 3 - 0
Terminal.Gui/Core/View.cs

@@ -1908,6 +1908,9 @@ namespace Terminal.Gui {
 
 		/// <summary>
 		/// Used by <see cref="Text"/> to resize the view's <see cref="Bounds"/> with the <see cref="TextFormatter.Size"/>.
+		/// Setting <see cref="Auto"/> to true only work if the <see cref="Width"/> and <see cref="Height"/> are null or
+		///   <see cref="LayoutStyle.Absolute"/> values and doesn't work with <see cref="LayoutStyle.Computed"/> layout,
+		///   to avoid breaking the <see cref="Pos"/> and <see cref="Dim"/> settings.
 		/// </summary>
 		public virtual bool AutoSize {
 			get => autoSize;