mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
NotificationServer: Move notifications down if hovered
Currently in case of multiple notifications, the notifications are drawn on top of each other when expanded. The change moves the notificaiton below other notifications
This commit is contained in:
parent
d2b887a793
commit
3f93aec720
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,7 @@ void NotificationWindow::enter_event(Core::Event&)
|
|||
m_hovering = true;
|
||||
resize_to_fit_text();
|
||||
move_to_front();
|
||||
update_notification_window_locations(GUI::Desktop::the().rect());
|
||||
}
|
||||
|
||||
void NotificationWindow::leave_event(Core::Event&)
|
||||
|
@ -125,6 +126,7 @@ void NotificationWindow::leave_event(Core::Event&)
|
|||
m_hovering = false;
|
||||
m_text_label->set_preferred_height(GUI::SpecialDimension::Grow);
|
||||
set_height(40);
|
||||
update_notification_window_locations(GUI::Desktop::the().rect());
|
||||
}
|
||||
|
||||
void NotificationWindow::set_text(String const& value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue