From 16d7e0bf98fdc28e6b690d0aac1ccef5e129b292 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 26 Jul 2023 08:15:42 +0300 Subject: [PATCH] [Label] Remove extra line spacing from Label minimum size calculations. --- scene/gui/label.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index cbaf1c372e..9242105b47 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -303,6 +303,9 @@ void Label::_update_visible() { break; } } + if (minsize.height > 0) { + minsize.height -= line_spacing; + } } inline void draw_glyph(const Glyph &p_gl, const RID &p_canvas, const Color &p_font_color, const Vector2 &p_ofs) {