mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 21:21:50 +03:00
9703510682
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. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
ConnectionFromClient.cpp | ||
ConnectionFromClient.h | ||
main.cpp | ||
NotificationClient.ipc | ||
NotificationServer.ipc | ||
NotificationWidget.gml | ||
NotificationWidget.h | ||
NotificationWindow.cpp | ||
NotificationWindow.h |