[Complex Text Layouts] Adds missing Font::SPACING_* to the Label, LineEdit, TextEdit, TextLine and TextParagraph.

Fixes oversized editor control height (default editor spacing is negative) and control size changing when text is set.
This commit is contained in:
bruvzg 2020-11-30 11:48:42 +02:00
parent d834789f47
commit a458e90179
No known key found for this signature in database
GPG key ID: 009E1BFE42239B95
9 changed files with 85 additions and 52 deletions

View file

@ -41,6 +41,8 @@ class TextParagraph : public Reference {
RID rid;
Vector<RID> lines;
int spacing_top = 0;
int spacing_bottom = 0;
bool dirty_lines = true;