浏览代码

API doc improvements

Tig 1 年之前
父节点
当前提交
6bb40abd7d
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      docfx/docs/layout.md
  2. 1 0
      docfx/docs/newinv2.md

+ 1 - 1
docfx/docs/layout.md

@@ -55,7 +55,7 @@ The [Pos](~/api/Terminal.Gui.Pos.yml) is the type of `View.X` and `View.Y` and s
 
 * Absolute position, by passing an integer - `Pos.Absolute(n)`.
 * Percentage of the parent's view size - `Pos.Percent(percent)`.
-* Anchored from the end of the dimension - `Pos.AnchorEnd(margin)`.
+* Anchored from the end of the dimension - `Pos.AnchorEnd()`.
 * Centered, using `Pos.Center()`.
 * The `Pos.Left(otherView)`, `Pos.Top(otherView)`, `Pos.Bottom(otherView)`, `Pos.Right(otherView)` positions of another view.
 

+ 1 - 0
docfx/docs/newinv2.md

@@ -24,6 +24,7 @@ The entire library has been reviewed and simplified. As a result, the API is mor
 * *Adornments* - 
 * *Built-in Scrolling/Virtual Content Area* - In v1, to have a view a user could scroll required either a bespoke scrolling implementation, inheriting from `ScrollView`, or managing the complexity of `ScrollBarView` directly. In v2, the base-View class supports scrolling inherently. The area of a view visible to the user at a given moment was previously a rectangle called `Bounds`. `Bounds.Location` was always `Point.Empty`. In v2 the visible area is a rectangle called `Viewport` which is a protal into the Views content, which can be bigger (or smaller) than the area visible to the user. Causing a view to scroll is as simple as changing `View.Viewport.Location`. The View's content described by `View.ContentSize`. See [Layout](layout.md) for details.
 * *Computed Layout Improvements* - 
+* *`Pos.AnchorEnd ()`* - New to v2 is `Pos.AnchorEnd ()` (with no parameters) which allows a view to be anchored to the right or bottom of the Superview. 
 * *`Dim.Auto`* - 
 * ...