diff --git a/Libraries/LibGUI/Application.cpp b/Libraries/LibGUI/Application.cpp index 042b512cd81..dd256ebdca0 100644 --- a/Libraries/LibGUI/Application.cpp +++ b/Libraries/LibGUI/Application.cpp @@ -115,7 +115,7 @@ public: { // FIXME: Add some kind of GUI::Label auto-sizing feature. int text_width = m_label->font().width(tooltip); - set_rect(100, 100, text_width + 10, m_label->font().glyph_height() + 8); + set_rect(rect().x(), rect().y(), text_width + 10, m_label->font().glyph_height() + 8); m_label->set_text(tooltip); } @@ -134,8 +134,9 @@ private: RefPtr