From 8ae09cb17fbcf19a86188aa73081676a03ed39e7 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 4 Mar 2024 22:58:14 -0500 Subject: [PATCH] homescreens/folio: Fix widget full representation being shown when starting drag and drop It's unnecessary to set the anchors on the full representation; it causes it to also show when the minimized representation is presented. --- .../package/contents/ui/delegate/WidgetDelegate.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/containments/homescreens/folio/package/contents/ui/delegate/WidgetDelegate.qml b/containments/homescreens/folio/package/contents/ui/delegate/WidgetDelegate.qml index c2c526f7..5d676603 100644 --- a/containments/homescreens/folio/package/contents/ui/delegate/WidgetDelegate.qml +++ b/containments/homescreens/folio/package/contents/ui/delegate/WidgetDelegate.qml @@ -43,10 +43,12 @@ Folio.WidgetContainer { widget.visualApplet.parent = widgetHolder; widget.visualApplet.anchors.fill = widgetHolder; - if (widget.visualApplet.fullRepresentationItem) { - widget.visualApplet.fullRepresentationItem.parent = widgetHolder; - widget.visualApplet.fullRepresentationItem.anchors.fill = widgetHolder; - } + + // seems to be unnecessary, causes issues where the fullRepresentationItem shows up over : + // if (widget.visualApplet.fullRepresentationItem) { + // widget.visualApplet.fullRepresentationItem.parent = widgetHolder; + // widget.visualApplet.fullRepresentationItem.anchors.fill = widgetHolder; + // } } onWidgetChanged: updateVisualApplet()