mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
Userland: Make TextWrapping::Wrap opt-in
This was breaking many places which didn't expect text to wrap. Now, the only place where text currently wraps is in GUI::Label.
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 08:01:23 +09:00
Author: https://github.com/sin-ack Commit: https://github.com/SerenityOS/serenity/commit/4c9c85ac017 Pull-request: https://github.com/SerenityOS/serenity/pull/9046 Issue: https://github.com/SerenityOS/serenity/issues/9032
@@ -50,7 +50,7 @@ void RadioButton::paint_event(PaintEvent& event)
|
||||
|
||||
Gfx::IntRect text_rect { circle_rect.right() + 7, 0, font().width(text()), font().glyph_height() };
|
||||
text_rect.center_vertically_within(rect());
|
||||
paint_text(painter, text_rect, font(), Gfx::TextAlignment::TopLeft, Gfx::TextWrapping::DontWrap);
|
||||
paint_text(painter, text_rect, font(), Gfx::TextAlignment::TopLeft);
|
||||
|
||||
if (is_focused())
|
||||
painter.draw_focus_rect(text_rect.inflated(6, 6), palette().focus_outline());
|
||||
|
||||
Reference in New Issue
Block a user