diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-11-30 11:48:42 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-12-06 20:30:59 +0200 |
commit | a458e901791818babe198c0177e0a2e851f821c1 (patch) | |
tree | e061646c16eadcc5c87a050698b4b33f660b709c /scene/resources/text_line.h | |
parent | d834789f475d431b10dcaef8804cd75dcd8b47dd (diff) | |
download | redot-engine-a458e901791818babe198c0177e0a2e851f821c1.tar.gz |
[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.
Diffstat (limited to 'scene/resources/text_line.h')
-rw-r--r-- | scene/resources/text_line.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/text_line.h b/scene/resources/text_line.h index ffa06cc5c1..6ed3558bd9 100644 --- a/scene/resources/text_line.h +++ b/scene/resources/text_line.h @@ -40,6 +40,8 @@ class TextLine : public Reference { GDCLASS(TextLine, Reference); RID rid; + int spacing_top = 0; + int spacing_bottom = 0; bool dirty = true; |