Skip to content

Commit bb694a9

Browse files
Tinyu-Zhaolbuque
authored andcommitted
libs/unit: Fix image position after scaling.
Signed-off-by: tinyu <[email protected]>
1 parent 007e508 commit bb694a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

m5stack/libs/m5ui/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def __init__(
4646
self.set_height(lv.SIZE_CONTENT)
4747
self.set_rotation(rotation)
4848
self.set_scale(scale_x, scale_y)
49+
self.set_pivot(0, 0)
4950

5051
def set_image(self, path):
5152
"""Set the image to be displayed.

0 commit comments

Comments
 (0)