diff options
Diffstat (limited to 'app/main.qml')
-rw-r--r-- | app/main.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/main.qml b/app/main.qml index f0b089f..66b0039 100644 --- a/app/main.qml +++ b/app/main.qml @@ -29,8 +29,8 @@ ApplicationWindow { Camera {
id: camdev_device
anchors.horizontalCenter: parent.horizontalCenter
- width: height * cameracontrol.ratio
- height: root.height
+ width: root.width
+ height: width / cameracontrol.ratio
anchors.top: parent.top
onIsrunningChanged: {
camerabg.visible = !isrunning
|