From fb12fcddb68e96580028072daa595d82fb3dd0ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20Knau=C3=9F?= Date: Wed, 12 Oct 2016 14:23:20 +0200 Subject: get the correct size for NewMailViewer in qml --- components/package/contents/ui/MailViewer.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'components/package/contents/ui') diff --git a/components/package/contents/ui/MailViewer.qml b/components/package/contents/ui/MailViewer.qml index 347f30de..02d84728 100644 --- a/components/package/contents/ui/MailViewer.qml +++ b/components/package/contents/ui/MailViewer.qml @@ -22,13 +22,14 @@ import QtQuick.Controls 1.4 import QtQuick.Layouts 1.1 import org.kube.framework.domain 1.0 as KubeFramework +import org.kube.mailviewer 1.0 as MV Item { id: root property variant message; property string html; property bool enablePartTreeView : true; - property int desiredHeight: enablePartTreeView ? topPartLoader.height + dummyApp.height + mailStructure.height + 50 : topPartLoader.height + dummyApp.height + 50; + property int desiredHeight: enablePartTreeView ? topPartLoader.height + newMailViewer.height + mailStructure.height + 50 : topPartLoader.height + newMailViewer.height + 50; Rectangle { id: rootRectangle @@ -40,14 +41,13 @@ Item { anchors.margins: 0 verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff Column { - spacing:2 + spacing: 2 Text { text: "New Mailviewer:" color: "blue" } - DummyApp { - id: dummyApp - height: 800 + MV.MailViewer { + id: newMailViewer width: rootRectangle.width } Text { -- cgit v1.2.3