mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibGUI: Use new layout system for basic widgets
This commit is contained in:
parent
bfbaad9f41
commit
19fac58e49
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/frhun
Commit: 19fac58e49
Pull-request: https://github.com/SerenityOS/serenity/pull/14261
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/mjz19910
17 changed files with 85 additions and 18 deletions
|
@ -107,7 +107,7 @@ RefPtr<NotificationWindow> NotificationWindow::get_window_by_id(i32 id)
|
|||
void NotificationWindow::resize_to_fit_text()
|
||||
{
|
||||
auto line_height = m_text_label->font().glyph_height();
|
||||
auto total_height = m_text_label->preferred_height();
|
||||
auto total_height = m_text_label->text_calculated_preferred_height();
|
||||
|
||||
m_text_label->set_fixed_height(total_height);
|
||||
set_height(40 - line_height + total_height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue