summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-15 16:25:49 +0200
committerGitHub <noreply@github.com>2021-06-15 16:25:49 +0200
commit1129439f09abe7deaff0837f281c5c0805f280da (patch)
tree8e17079caba6637131443541171555765396210f /scene/gui
parent69553166ea9338588917d9ac2f05ff9ac00f55c6 (diff)
parent47108202c6635eaa60da8c4993b8a644709a6fc4 (diff)
Merge pull request #49011 from KoBeWi/totally_h
Fix valign with stylebox borders
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/label.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp
index de0ee626b9..0ce0130ad5 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) {