From 3bb05da45ffbb28089f7af7e07728031141dba6a Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Tue, 27 Jun 2023 20:33:13 -0300 Subject: [PATCH] Fix delay on tab resizing when (un)hovering tabs (cherry picked from commit 7ffad29df818c41baf5d1fc98690874b48d586fe) --- scene/gui/tab_bar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/tab_bar.cpp b/scene/gui/tab_bar.cpp index 35564eb4581..959a51eff91 100644 --- a/scene/gui/tab_bar.cpp +++ b/scene/gui/tab_bar.cpp @@ -881,6 +881,8 @@ void TabBar::_update_hover() { if (hover != -1) { emit_signal(SNAME("tab_hovered"), hover); } + + _update_cache(); queue_redraw(); } @@ -988,6 +990,7 @@ void TabBar::_on_mouse_exited() { highlight_arrow = -1; dragging_valid_tab = false; + _update_cache(); queue_redraw(); }