[Label] Remove extra line spacing from Label minimum size calculations.

This commit is contained in:
bruvzg 2023-07-26 08:15:42 +03:00
parent 202e4b2c1e
commit 16d7e0bf98
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38
1 changed files with 3 additions and 0 deletions

View File

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