mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Fix ArcMenu init after dtp and only child in leftbox
gh-2248
This commit is contained in:
11
src/panel.js
11
src/panel.js
@@ -531,16 +531,9 @@ export const Panel = GObject.registerClass(
|
||||
let allocationMap = this.allocationMap[pos.element]
|
||||
|
||||
if (allocationMap.actor) {
|
||||
let considerActor =
|
||||
pos.visible &&
|
||||
(pos.element == Pos.DESKTOP_BTN ||
|
||||
allocationMap.actor.get_children().length)
|
||||
allocationMap.actor.visible = pos.visible
|
||||
|
||||
allocationMap.actor.visible = considerActor
|
||||
|
||||
if (!considerActor) {
|
||||
return
|
||||
}
|
||||
if (!pos.visible) return
|
||||
|
||||
// if the panel length is dynamic, get all visible
|
||||
// elements as a single group
|
||||
|
||||
Reference in New Issue
Block a user