Skip to content

Commit 9b6d595

Browse files
committed
fix #164: Refresh pen layer when stage size changes
1 parent ab5163a commit 9b6d595

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/ProjectPlayer.qml

+10
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,16 @@ ProjectScene {
192192
scale: hqPen ? 1 : stageScale
193193
transformOrigin: Item.TopLeft
194194
visible: !priv.loading
195+
196+
onWidthChanged: {
197+
if (!hqPen)
198+
refresh();
199+
}
200+
201+
onHeightChanged: {
202+
if (!hqPen)
203+
refresh();
204+
}
195205
}
196206

197207
Component {

0 commit comments

Comments
 (0)