mirror of
https://invent.kde.org/plasma/plasma-desktop.git
synced 2026-11-03 22:59:45 -09:00
Use strict available space for positioning widget explorer sidebar
Otherwise, it will overlap panels set as auto-hide. BUG: 493592 FIXED-IN: 6.2.0
This commit is contained in:
parent
192cfd0eef
commit
eb17d8b080
1 changed files with 5 additions and 5 deletions
|
|
@ -222,7 +222,7 @@ Item {
|
|||
return result;
|
||||
}
|
||||
|
||||
const rect = containment.plasmoid.availableScreenRect;
|
||||
const rect = desktop.strictAvailableScreenRect;
|
||||
result += rect.x;
|
||||
|
||||
if (sideBarOnRightEdge) {
|
||||
|
|
@ -231,7 +231,7 @@ Item {
|
|||
|
||||
return result;
|
||||
}
|
||||
y: desktop.y + (containment ? containment.plasmoid.availableScreenRect.y : 0)
|
||||
y: desktop.y + (containment ? desktop.strictAvailableScreenRect.y : 0)
|
||||
|
||||
onVisibleChanged: {
|
||||
if (!visible) {
|
||||
|
|
@ -244,7 +244,7 @@ Item {
|
|||
id: sidePanelStack
|
||||
asynchronous: true
|
||||
width: item ? item.width : 0
|
||||
height: containment ? containment.plasmoid.availableScreenRect.height - sidePanel.margins.top - sidePanel.margins.bottom : 1000
|
||||
height: containment ? desktop.strictAvailableScreenRect.height - sidePanel.margins.top - sidePanel.margins.bottom : 1000
|
||||
state: "closed"
|
||||
|
||||
function bindingWithItem(callback: var, defaults: var): var {
|
||||
|
|
@ -297,8 +297,8 @@ Item {
|
|||
}
|
||||
|
||||
Connections {
|
||||
target: containment?.plasmoid ?? null
|
||||
function onAvailableScreenRectChanged() {
|
||||
target: desktop
|
||||
function onStrictAvailableScreenRectChanged() {
|
||||
if (sidePanel.visible) {
|
||||
sidePanel.requestActivate();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue