Skip to content

Commit 853fcec

Browse files
committed
Fix documented unit for image height/width
1 parent 67b18c3 commit 853fcec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ v0.15.0 (?? ??? 2018)
3535

3636
### Changed
3737
- Remove zend-stdlib dependency @Trainmaster #1284
38+
- The default unit for `\PhpOffice\PhpWord\Style\Image` changed from `px` to `pt`.
3839

3940

4041
v0.14.0 (29 Dec 2017)

docs/styles.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ Image
149149
Available Image style options:
150150

151151
- ``alignment``. See ``\PhpOffice\PhpWord\SimpleType\Jc`` class for the details.
152-
- ``height``. Height in pixels.
152+
- ``height``. Height in *pt*.
153153
- ``marginLeft``. Left margin in inches, can be negative.
154154
- ``marginTop``. Top margin in inches, can be negative.
155-
- ``width``. Width in pixels.
155+
- ``width``. Width in *pt*.
156156
- ``wrappingStyle``. Wrapping style, *inline*, *square*, *tight*, *behind*, or *infront*.
157157
- ``wrapDistanceTop``. Top text wrapping in pixels.
158158
- ``wrapDistanceBottom``. Bottom text wrapping in pixels.

0 commit comments

Comments
 (0)