diff options
| author | Rémi Verschelde | 2016-05-01 14:54:45 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-05-06 11:06:22 +0200 |
| commit | 7f80fce4647087b410d1b693bb2f5a21837012b8 (patch) | |
| tree | 3e6d0970d33e2fa41df9b3faafb9376fb7262d4f | |
| parent | ea9b552e271196a5f9a465ab73d1ad837f5c8866 (diff) | |
| download | godot-7f80fce4647087b410d1b693bb2f5a21837012b8.tar.gz godot-7f80fce4647087b410d1b693bb2f5a21837012b8.tar.zst godot-7f80fce4647087b410d1b693bb2f5a21837012b8.zip | |
Tabs: Fix icon size not taken into account for offset
Fixes #4107.
(cherry picked from commit bbaf2969483d9b289bd8985067d546f5b60d645f)
| -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 9692d0888..ff95c8e08 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"); |
