diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-28 16:21:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 16:21:45 +0200 |
commit | 483b8a598eaaf114bba9fabb2037e01cce9f6523 (patch) | |
tree | 301c114817aac4cffa0826ab1fa0aff8ddc9d314 /scene | |
parent | 4296539d94af19ba9916c6f2bafaf1438d0f5915 (diff) | |
parent | 7fabbe2760374a3d047a4caa7de3712f06c941be (diff) |
Merge pull request #53173 from jmb462/fix-tree-column-title-min-size
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index c534ee7f95..7d7596635c 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -4043,7 +4043,7 @@ int Tree::get_column_minimum_width(int p_column) const { // Check if the visible title of the column is wider. if (show_column_titles) { - min_width = MAX(cache.font->get_string_size(columns[p_column].title).width, min_width); + min_width = MAX(cache.font->get_string_size(columns[p_column].title).width + cache.bg->get_margin(SIDE_LEFT) + cache.bg->get_margin(SIDE_RIGHT), min_width); } if (!columns[p_column].clip_content) { |