summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-08-29 16:53:23 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-08-29 16:53:23 +0900
commitb7056db04ee2e6655849ecc3f8ec4b2d019118e9 (patch)
treeefff2896f9ba640fe07faa53fd6c4ccc5cb01dc5
parent31d21fe68392975cedba9e51072e9fbe73d17c0e (diff)
-rw-r--r--app/main.qml4
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