瀏覽代碼

Fixed API doc typo

Tig 1 年之前
父節點
當前提交
d915c4e6f8
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      Terminal.Gui/View/ViewDrawing.cs
  2. 1 1
      Terminal.Gui/Views/ScrollView.cs
  3. 1 1
      UICatalog/Scenarios/Clipping.cs

+ 1 - 1
Terminal.Gui/View/ViewDrawing.cs

@@ -381,7 +381,7 @@ public partial class View
     ///         The <see cref="Viewport"/> Location and Size indicate what part of the View's virtual content area, defined
     ///         by <see cref="ContentSize"/>, is visible and should be drawn. The coordinates taken by <see cref="Move"/> and
     ///         <see cref="AddRune"/> are relative to <see cref="Viewport"/>, thus if <c>ViewPort.Location.Y</c> is <c>5</c>
-    ///         the 5th row of the content should be drawn using <c>MoveTo (x, 5)</c>.
+    ///         the 6th row of the content should be drawn using <c>MoveTo (x, 5)</c>.
     ///     </para>
     ///     <para>
     ///         If <see cref="ContentSize"/> is larger than <c>ViewPort.Size</c> drawing code should use <see cref="Viewport"/>

+ 1 - 1
Terminal.Gui/Views/ScrollView.cs

@@ -342,7 +342,7 @@ public class ScrollView : View
         Rectangle savedClip = ClipToViewport ();
 
         // TODO: It's bad practice for views to always clear a view. It negates clipping.
-        Clear (viewport);
+        //Clear (viewport);
 
         if (!string.IsNullOrEmpty (_contentView.Text) || _contentView.Subviews.Count > 0)
         {

+ 1 - 1
UICatalog/Scenarios/Clipping.cs

@@ -45,7 +45,7 @@ public class Clipping : Scenario
 
         var embedded2 = new Window
         {
-            Title = "1",
+            Title = "2",
             X = 3,
             Y = 3,
             Width = Dim.Fill (3),