Explorar o código

Fix delay on tab resizing when (un)hovering tabs

Michael Alexsander %!s(int64=2) %!d(string=hai) anos
pai
achega
7ffad29df8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      scene/gui/tab_bar.cpp

+ 3 - 0
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();
 }