mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:39:04 +08:00
Resize camera-image with viewport
CURA-338
This commit is contained in:
parent
d0aa33f57f
commit
fe05aa18cb
@ -563,8 +563,8 @@ UM.MainWindow
|
||||
Image
|
||||
{
|
||||
id: cameraImage
|
||||
width: 800
|
||||
height: 600
|
||||
width: Math.min(viewportOverlay.width, sourceSize.width)
|
||||
height: sourceSize.height * width / sourceSize.width
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.horizontalCenterOffset: - UM.Theme.getSize("sidebar").width / 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user