diff options
author | kobewi <kobewi4e@gmail.com> | 2021-05-23 22:39:38 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-05-23 22:39:38 +0200 |
commit | 47108202c6635eaa60da8c4993b8a644709a6fc4 (patch) | |
tree | 98bafc608b0e843655857c417dd2eeee1e39d7fe /scene | |
parent | 809948f977294c8bb61a6e46dfa132ea6e0478d8 (diff) |
Fix valign with stylebox borders
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/label.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index be73fd8f51..7b85f7d46b 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -217,6 +217,7 @@ void Label::_notification(int p_what) { for (int64_t i = lines_skipped; i < last_line; i++) { total_h += TS->shaped_text_get_size(lines_rid[i]).y + font->get_spacing(Font::SPACING_TOP) + font->get_spacing(Font::SPACING_BOTTOM) + line_spacing; } + total_h += style->get_margin(SIDE_TOP) + style->get_margin(SIDE_BOTTOM); int vbegin = 0, vsep = 0; if (lines_visible > 0) { |