From 8be967df2d6e20ee85f141bb0de062d683677fd1 Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Fri, 3 Jan 2025 17:17:44 +0100 Subject: [PATCH] Fix size of directly viewed webpage Default was 0:0, so the plasmoid was blank. Now, it fills the plasmoid space on the desktop. --- cqcb.plasma.webslice/contents/ui/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cqcb.plasma.webslice/contents/ui/main.qml b/cqcb.plasma.webslice/contents/ui/main.qml index 389eba6..3d51a8e 100644 --- a/cqcb.plasma.webslice/contents/ui/main.qml +++ b/cqcb.plasma.webslice/contents/ui/main.qml @@ -121,8 +121,8 @@ Item { backgroundColor: backgroundColorWhite?"white":(backgroundColorTransparent?"transparent":(backgroundColorTheme?theme.viewBackgroundColor:(backgroundColorCustom?customBackgroundColor:"black"))) - width: (displaySiteBehaviour) ? 0 : webPopupWidth - height: (displaySiteBehaviour) ? 0 : webPopupHeight + width: (displaySiteBehaviour) ? parent.width : webPopupWidth + height: (displaySiteBehaviour) ? parent.height : webPopupHeight implicitWidth: width implicitHeight: height