Skip to content

Commit 9627c6b

Browse files
Luc DionLuc Dion
authored andcommitted
Update doc
1 parent 47aa208 commit 9627c6b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Docs/Notes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Nice introduction https://github.com/stevestreza/Relayout
1212

1313
- Add a doc example using width(40%).height(100%)
14+
- Add also an example using view.pin.top(25%).hCenter(0)
1415

1516
- Add an image showing hCenter and vCenter (see http://doc.qt.io/qt-5/qtquick-positioning-anchors.html)
1617

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ The value specifies the vertical center distance from the superview's top edge i
127127

128128
```
129129
view.pin.top(20).left(20)
130-
view.pin.left(0).right(0)
130+
view.pin.top(25%).hCenter(0)
131131
view.pin.left(12).vCenter(100)
132132
```
133133

@@ -169,6 +169,7 @@ Position the view vertical center directly on its superview vertical center. Sim
169169
```javascript
170170
view.pin.top().left()
171171
view.pin.bottom().right()
172+
view.pin.hCenter().vCenter()
172173
```
173174

174175
###### Example:

0 commit comments

Comments
 (0)