From 7f80fce4647087b410d1b693bb2f5a21837012b8 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: [PATCH] Tabs: Fix icon size not taken into account for offset Fixes #4107. (cherry picked from commit bbaf2969483d9b289bd8985067d546f5b60d645f) --- scene/gui/tabs.cpp | 1 + 1 file changed, 1 insertion(+) 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");