mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +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
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
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
Reference in a new issue