mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Resize camera-image with viewport
CURA-338
This commit is contained in:
parent
d0aa33f57f
commit
fe05aa18cb
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue