diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-24 21:40:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 21:40:23 +0200 |
commit | 01d505e507cc80e47e021d54fed7fdfc54d325be (patch) | |
tree | 69855bce0950cfc1acf978145fa3c9234d51cf3d | |
parent | 89c718c58b4fe5c98ea188fa9980711d1703442c (diff) | |
parent | edf3d225cee1774e7d788405ca4aff52f3f98101 (diff) |
Merge pull request #52993 from YeldhamDev/tabs_rename_fix
-rw-r--r-- | scene/gui/tabs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index 3ca2d1c1e9..deb5c364cb 100644 --- a/scene/gui/tabs.cpp +++ b/scene/gui/tabs.cpp @@ -241,6 +241,7 @@ void Tabs::_shape(int p_tab) { tabs.write[p_tab].xl_text = atr(tabs[p_tab].text); tabs.write[p_tab].text_buf->clear(); + tabs.write[p_tab].text_buf->set_width(-1); if (tabs[p_tab].text_direction == Control::TEXT_DIRECTION_INHERITED) { tabs.write[p_tab].text_buf->set_direction(is_layout_rtl() ? TextServer::DIRECTION_RTL : TextServer::DIRECTION_LTR); } else { @@ -529,7 +530,6 @@ bool Tabs::get_offset_buttons_visible() const { void Tabs::set_tab_title(int p_tab, const String &p_title) { ERR_FAIL_INDEX(p_tab, tabs.size()); tabs.write[p_tab].text = p_title; - tabs.write[p_tab].xl_text = atr(p_title); _shape(p_tab); update(); minimum_size_changed(); |