File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments