mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
bar-service: inverted opening side for pills and stuff. fix #1579
This commit is contained in:
@@ -240,21 +240,21 @@ Singleton {
|
||||
function getPillDirection(widgetInstance) {
|
||||
try {
|
||||
if (widgetInstance.section === "left") {
|
||||
return true;
|
||||
} else if (widgetInstance.section === "right") {
|
||||
return false;
|
||||
} else if (widgetInstance.section === "right") {
|
||||
return true;
|
||||
} else {
|
||||
// middle section
|
||||
if (widgetInstance.sectionWidgetIndex < widgetInstance.sectionWidgetsCount / 2) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
Logger.e(e);
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
function getTooltipDirection(screenName) {
|
||||
|
||||
Reference in New Issue
Block a user