Skip to content

Commit

Permalink
Merge pull request #79913 from bruvzg/lbl_min_h_line
Browse files Browse the repository at this point in the history
[Label] Remove extra line spacing from Label minimum size calculations.
  • Loading branch information
YuriSizov committed Jul 26, 2023
2 parents 7fe88c7 + 16d7e0b commit 7305318
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/gui/label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7305318

Please sign in to comment.