From ac034bdf7dd1792f813171c11930f947f7b2a674 Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 9 Aug 2022 21:42:40 +0200 Subject: [PATCH] LibGUI: Avoid too large tooltip when switching to shorter text The tooltip window didn't resize when setting a shorter text, or moving to a widget with shorter text, so it had extra space on the sides. Fix by allowing the window to resize without obeying the minimum size of the (previous) tooltip. --- Userland/Libraries/LibGUI/Application.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibGUI/Application.cpp b/Userland/Libraries/LibGUI/Application.cpp index 9189f30fc1..c3805cc705 100644 --- a/Userland/Libraries/LibGUI/Application.cpp +++ b/Userland/Libraries/LibGUI/Application.cpp @@ -43,6 +43,7 @@ private: TooltipWindow() { set_window_type(WindowType::Tooltip); + set_obey_widget_min_size(false); m_label = set_main_widget