diff options
Diffstat (limited to 'src/interface/Label.cpp')
| -rw-r--r-- | src/interface/Label.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interface/Label.cpp b/src/interface/Label.cpp index d4bd82e..e19b6b8 100644 --- a/src/interface/Label.cpp +++ b/src/interface/Label.cpp @@ -59,6 +59,14 @@ void Label::SetText(std::string text) } } +void Label::AutoHeight() +{ + bool oldAH = autoHeight; + autoHeight = true; + updateMultiline(); + autoHeight = oldAH; +} + void Label::updateMultiline() { int lines = 1; |
