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.
This commit is contained in:
Devin Lin 2024-03-04 22:58:14 -05:00
parent a4d0894933
commit 8ae09cb17f

View file

@ -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()