mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 19:05:08 +00:00
WindowServer/GMenu: Adjust the popup position to fit the window inside the screen
Rather than passing a "top_anchored" bool. Fixes #22.
This commit is contained in:
parent
a4b0dfff43
commit
f55965b5e8
9 changed files with 20 additions and 17 deletions
|
@ -21,7 +21,7 @@ public:
|
|||
void add_action(Retained<GAction>);
|
||||
void add_separator();
|
||||
|
||||
void popup(const Point& screen_position, bool top_anchored = true);
|
||||
void popup(const Point& screen_position);
|
||||
void dismiss();
|
||||
|
||||
Function<void(unsigned)> on_item_activation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue