1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

bring back center special positioning logic for DankDash

This commit is contained in:
bbedward
2025-09-09 20:24:52 -04:00
parent a67a6c7c1c
commit a4d1b6ad76

View File

@@ -19,9 +19,15 @@ DankPopout {
property int currentTabIndex: 0
function setTriggerPosition(x, y, width, section, screen) {
triggerX = x
if (section === "center") {
const screenWidth = screen ? screen.width : Screen.width
triggerX = (screenWidth - popupWidth) / 2
triggerWidth = popupWidth
} else {
triggerX = x
triggerWidth = width
}
triggerY = y
triggerWidth = width
triggerSection = section
triggerScreen = screen
}