summaryrefslogtreecommitdiffstats
path: root/scene/gui/label.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-07-26 08:15:42 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-07-26 08:15:53 +0300
commit16d7e0bf98fdc28e6b690d0aac1ccef5e129b292 (patch)
tree79ab859a692c0784c291545840a9333d8c56a987 /scene/gui/label.cpp
parent202e4b2c1e7f8b25738b93d0e4d5066453d3edf3 (diff)
downloadredot-engine-16d7e0bf98fdc28e6b690d0aac1ccef5e129b292.tar.gz
[Label] Remove extra line spacing from Label minimum size calculations.
Diffstat (limited to 'scene/gui/label.cpp')
-rw-r--r--scene/gui/label.cpp3
1 files changed, 3 insertions, 0 deletions
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) {