Skip to content

Commit

Permalink
Merge pull request #83296 from Wierdox/fix_phantom_tab_right_button
Browse files Browse the repository at this point in the history
Fix phantom tab right button
  • Loading branch information
akien-mga committed Oct 16, 2023
2 parents 81f4953 + 7b33ad3 commit c106ff8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gui/tab_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c106ff8

Please sign in to comment.