diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index 9692d08882f..ff95c8e084d 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 tex = tabs[p_idx].icon; if (tex.is_valid()) { + x+=tex->get_width(); if (tabs[p_idx].text!="") x+=get_constant("hseparation");