Skip to content

Commit

Permalink
Merge pull request qmlbook#174 from task-jp/patch-8
Browse files Browse the repository at this point in the history
ch04: highlight a property name
  • Loading branch information
e8johan authored May 11, 2022
2 parents 3fe5b12 + a18f475 commit 0717242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ch04-qmlstart/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ QML provides a flexible way to layout items using anchors. The concept of anchor

![](./assets/anchors.png)

An element has 6 major anchor lines (`top`, `bottom`, `left`, `right`, `horizontalCenter`, `verticalCenter`). Additionally, there is the baseline anchor for text in `Text` elements. Each anchor line comes with an offset. In the case of the `top`, `bottom`, `left`, and `right` anchors, they are called margins. For `horizontalCenter`, `verticalCenter` and `baseline` they are called offsets.
An element has 6 major anchor lines (`top`, `bottom`, `left`, `right`, `horizontalCenter`, `verticalCenter`). Additionally, there is the `baseline` anchor for text in `Text` elements. Each anchor line comes with an offset. In the case of the `top`, `bottom`, `left`, and `right` anchors, they are called margins. For `horizontalCenter`, `verticalCenter` and `baseline` they are called offsets.

![](./assets/anchorgrid.png)

Expand Down

0 comments on commit 0717242

Please sign in to comment.