File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1488,8 +1488,8 @@ int TabBar::get_tab_width(int p_idx) const {
14881488 style = theme_cache.tab_disabled_style ;
14891489 } else if (current == p_idx) {
14901490 style = theme_cache.tab_selected_style ;
1491- // Use the unselected style's width if the hovered one is shorter , to avoid an infinite loop when switching tabs with the mouse.
1492- } else if (hover == p_idx && theme_cache.tab_hovered_style ->get_minimum_size ().width >= theme_cache.tab_unselected_style ->get_minimum_size ().width ) {
1491+ // Always pick the widest style between hovered and unselected , to avoid an infinite loop when switching tabs with the mouse.
1492+ } else if (theme_cache.tab_hovered_style ->get_minimum_size ().width > theme_cache.tab_unselected_style ->get_minimum_size ().width ) {
14931493 style = theme_cache.tab_hovered_style ;
14941494 } else {
14951495 style = theme_cache.tab_unselected_style ;
You can’t perform that action at this time.
0 commit comments