summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-16 10:40:59 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-16 10:40:59 +0200
commitc106ff8b35b8eaaa410d22c430785de0f61883fb (patch)
tree652670e60c1e99955d2b9aa55aed655028c468b9 /scene
parent81f4953c3a948b95d50d35007582f85c97c4716e (diff)
parent7b33ad354a1884c027487892f2e44e8cc6862076 (diff)
downloadredot-engine-c106ff8b35b8eaaa410d22c430785de0f61883fb.tar.gz
Merge pull request #83296 from Wierdox/fix_phantom_tab_right_button
Fix phantom tab right button
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tab_bar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tab_bar.cpp b/scene/gui/tab_bar.cpp
index 7e9b566438..8af73deefb 100644
--- a/scene/gui/tab_bar.cpp
+++ b/scene/gui/tab_bar.cpp
@@ -567,6 +567,8 @@ void TabBar::_draw_tab(Ref<StyleBox> &p_tab_style, Color &p_font_color, int p_in
rb->draw(ci, Point2i(rb_rect.position.x + style->get_margin(SIDE_LEFT), rb_rect.position.y + style->get_margin(SIDE_TOP)));
p_x = rtl ? rb_rect.position.x : rb_rect.position.x + rb_rect.size.width;
+ } else {
+ tabs.write[p_index].rb_rect = Rect2();
}
// Draw and calculate rect of the close button.