mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-04 00:01:19 -07: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
|
Image
|
||||||
{
|
{
|
||||||
id: cameraImage
|
id: cameraImage
|
||||||
width: 800
|
width: Math.min(viewportOverlay.width, sourceSize.width)
|
||||||
height: 600
|
height: sourceSize.height * width / sourceSize.width
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.horizontalCenterOffset: - UM.Theme.getSize("sidebar").width / 2
|
anchors.horizontalCenterOffset: - UM.Theme.getSize("sidebar").width / 2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue