From 6140c398f0f2696a7042c1f983f523bb252e0662 Mon Sep 17 00:00:00 2001 From: bbedward Date: Thu, 2 Oct 2025 14:14:16 -0400 Subject: [PATCH] Remove useless rounding --- Widgets/DankPopout.qml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Widgets/DankPopout.qml b/Widgets/DankPopout.qml index 7fcd8065..d70584f3 100644 --- a/Widgets/DankPopout.qml +++ b/Widgets/DankPopout.qml @@ -84,8 +84,8 @@ PanelWindow { id: contentContainer layer.enabled: true - readonly property real screenWidth: root.screen ? root.screen.width : 1920 - readonly property real screenHeight: root.screen ? root.screen.height : 1080 + readonly property real screenWidth: root.screen.width + readonly property real screenHeight: root.screen.height readonly property real gothOffset: SettingsData.dankBarGothCornersEnabled ? Theme.cornerRadius : 0 readonly property real calculatedX: { if (SettingsData.dankBarPosition === SettingsData.Position.Left) { @@ -108,8 +108,8 @@ PanelWindow { } } - width: Math.round(popupWidth) - height: Math.round(popupHeight) + width: popupWidth + height: popupHeight x: Math.round(calculatedX) y: Math.round(calculatedY) opacity: shouldBeVisible ? 1 : 0 @@ -122,8 +122,6 @@ PanelWindow { } } - - Loader { id: contentLoader anchors.fill: parent