ladybird/Userland/Services/NotificationServer
Sam Atkins 9703510682 NotificationServer: Manually calculate the text label height
The layout system can't currently answer the question "what height does
this Label want to be, if it has a certain width available?" Instead it
relies on counting newlines, which doesn't work in a lot of cases. This
made the notification windows look and behave in a funky way when their
text wraps onto multiple lines.

This patch uses TextLayout to measure how many lines we need, and then
manually sets the Label and Window heights to match. It's a bit hacky,
hence the FIXME, but it does make things behave the way they are
supposed to.
2024-01-21 09:32:10 -05:00
..
CMakeLists.txt NotificationServer: Convert the notification window contents to GML 2024-01-21 09:32:10 -05:00
ConnectionFromClient.cpp Userland: Migrate to String in notification system 2023-09-01 12:06:08 +02:00
ConnectionFromClient.h Userland: Migrate to String in notification system 2023-09-01 12:06:08 +02:00
main.cpp LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
NotificationClient.ipc Everywhere: Use IPC include syntax 2021-07-03 12:16:00 +02:00
NotificationServer.ipc Userland: Migrate to String in notification system 2023-09-01 12:06:08 +02:00
NotificationWidget.gml NotificationServer: Manually calculate the text label height 2024-01-21 09:32:10 -05:00
NotificationWidget.h NotificationServer: Convert the notification window contents to GML 2024-01-21 09:32:10 -05:00
NotificationWindow.cpp NotificationServer: Manually calculate the text label height 2024-01-21 09:32:10 -05:00
NotificationWindow.h NotificationServer: Make notifications not overlap when they appear 2023-11-05 09:06:33 +01:00