mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03: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
Notes:
sideshowbarker
2024-07-17 09:00:49 +09:00
Author: https://github.com/atharva1910 🔰 Commit: https://github.com/SerenityOS/serenity/commit/3f93aec720 Pull-request: https://github.com/SerenityOS/serenity/pull/14572 Issue: https://github.com/SerenityOS/serenity/issues/14440
@ -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…
Reference in New Issue
Block a user