1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #95122 from kleonc/tab_bar_clear_close_button_rect

Clear `TabBar` tab close button's rect after it's hidden
This commit is contained in:
Rémi Verschelde
2024-08-06 12:31:57 +02:00

View File

@@ -620,6 +620,8 @@ void TabBar::_draw_tab(Ref<StyleBox> &p_tab_style, Color &p_font_color, int p_in
}
cb->draw(ci, Point2i(cb_rect.position.x + style->get_margin(SIDE_LEFT), cb_rect.position.y + style->get_margin(SIDE_TOP)));
} else {
tabs.write[p_index].cb_rect = Rect2();
}
}