Merge pull request #53173 from jmb462/fix-tree-column-title-min-size

This commit is contained in:
Rémi Verschelde 2021-09-28 16:21:45 +02:00 committed by GitHub
commit 483b8a598e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {