diff options
author | jmb462 <jmb462@gmail.com> | 2021-09-28 14:54:48 +0200 |
---|---|---|
committer | jmb462 <jmb462@gmail.com> | 2021-09-28 14:54:48 +0200 |
commit | 7fabbe2760374a3d047a4caa7de3712f06c941be (patch) | |
tree | 8ab5996414a4d8dc28ae64e759593dc3b30f2fdb | |
parent | ed5267f69fd580b6c422153cfa46d0f33374d0db (diff) |
Fix tree title column size minimum width
-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) { |