mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 08:22:51 -05:00
bring back center special positioning logic for DankDash
This commit is contained in:
@@ -19,9 +19,15 @@ DankPopout {
|
|||||||
property int currentTabIndex: 0
|
property int currentTabIndex: 0
|
||||||
|
|
||||||
function setTriggerPosition(x, y, width, section, screen) {
|
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
|
triggerY = y
|
||||||
triggerWidth = width
|
|
||||||
triggerSection = section
|
triggerSection = section
|
||||||
triggerScreen = screen
|
triggerScreen = screen
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user