From bbaf2969483d9b289bd8985067d546f5b60d645f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 1 May 2016 14:54:45 +0200 Subject: Tabs: Fix icon size not taken into account for offset Fixes #4107. --- scene/gui/tabs.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene/gui') 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 tex = tabs[p_idx].icon; if (tex.is_valid()) { + x+=tex->get_width(); if (tabs[p_idx].text!="") x+=get_constant("hseparation"); -- cgit v1.2.3