mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 06:03:57 -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
|
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
|
// We show a nice overlay on the 3D viewer when the current output device has no monitor view
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
|
@ -16,7 +19,6 @@ Item
|
||||||
color: UM.Theme.getColor("viewport_overlay")
|
color: UM.Theme.getColor("viewport_overlay")
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
visible: monitorViewComponent.sourceComponent == null ? 1 : 0
|
|
||||||
|
|
||||||
MouseArea
|
MouseArea
|
||||||
{
|
{
|
||||||
|
@ -30,6 +32,9 @@ Item
|
||||||
{
|
{
|
||||||
id: monitorViewComponent
|
id: monitorViewComponent
|
||||||
|
|
||||||
|
width: parent.width
|
||||||
|
height: parent.height
|
||||||
|
|
||||||
property real maximumWidth: parent.width
|
property real maximumWidth: parent.width
|
||||||
property real maximumHeight: parent.height
|
property real maximumHeight: parent.height
|
||||||
|
|
||||||
|
|
|
@ -202,7 +202,6 @@ Item
|
||||||
target: Printer
|
target: Printer
|
||||||
onAdditionalComponentsChanged:
|
onAdditionalComponentsChanged:
|
||||||
{
|
{
|
||||||
print("areaId", areaId)
|
|
||||||
if(areaId == "monitorButtons") {
|
if(areaId == "monitorButtons") {
|
||||||
for (var component in CuraApplication.additionalComponents["monitorButtons"]) {
|
for (var component in CuraApplication.additionalComponents["monitorButtons"]) {
|
||||||
CuraApplication.additionalComponents["monitorButtons"][component].parent = additionalComponentsRow
|
CuraApplication.additionalComponents["monitorButtons"][component].parent = additionalComponentsRow
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue