mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-27 05:40:17 +00:00
fix popup anchor for bottom bar layout
This commit is contained in:
parent
8eb65c844a
commit
c07d302f2b
1 changed files with 1 additions and 2 deletions
|
@ -46,8 +46,7 @@ void bar_calculate_popup_anchor_for_bar_item(struct bar* bar, struct bar_item* b
|
|||
- bar_item->popup.background.bounds.size.width;
|
||||
}
|
||||
anchor.y += (g_bar_manager.position == POSITION_BOTTOM
|
||||
? (-window->frame.size.height
|
||||
- bar_item->popup.background.bounds.size.height)
|
||||
? (- bar_item->popup.background.bounds.size.height)
|
||||
: window->frame.size.height);
|
||||
|
||||
popup_set_anchor(&bar_item->popup, anchor, bar->adid);
|
||||
|
|
Loading…
Reference in a new issue