Browse Source

Monitor view component loader should have width and height from parent

ChrisTerBeke 7 years ago
parent
commit
c4d7a33c31
2 changed files with 6 additions and 2 deletions
  1. 6 1
      plugins/MonitorStage/MonitorMainView.qml
  2. 0 1
      resources/qml/MonitorButton.qml

+ 6 - 1
plugins/MonitorStage/MonitorMainView.qml

@@ -8,6 +8,9 @@ import Cura 1.0 as Cura
 
 Item
 {
+    width: parent.width
+    height: parent.height
+
     // We show a nice overlay on the 3D viewer when the current output device has no monitor view
     Rectangle
     {
@@ -16,7 +19,6 @@ Item
         color: UM.Theme.getColor("viewport_overlay")
         width: parent.width
         height: parent.height
-        visible: monitorViewComponent.sourceComponent == null ? 1 : 0
 
         MouseArea
         {
@@ -30,6 +32,9 @@ Item
     {
         id: monitorViewComponent
 
+        width: parent.width
+        height: parent.height
+
         property real maximumWidth: parent.width
         property real maximumHeight: parent.height
 

+ 0 - 1
resources/qml/MonitorButton.qml

@@ -202,7 +202,6 @@ Item
             target: Printer
             onAdditionalComponentsChanged:
             {
-                print("areaId", areaId)
                 if(areaId == "monitorButtons") {
                     for (var component in CuraApplication.additionalComponents["monitorButtons"]) {
                         CuraApplication.additionalComponents["monitorButtons"][component].parent = additionalComponentsRow