diff options
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/tabs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index 9692d08882..ff95c8e084 100644 --- a/scene/gui/tabs.cpp +++ b/scene/gui/tabs.cpp @@ -620,6 +620,7 @@ int Tabs::get_tab_width(int p_idx) const { Ref<Texture> tex = tabs[p_idx].icon; if (tex.is_valid()) { + x+=tex->get_width(); if (tabs[p_idx].text!="") x+=get_constant("hseparation"); |