mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
Monitor view component loader should have width and height from parent
This commit is contained in:
parent
8cd9439497
commit
c4d7a33c31
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue