mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed a regression where horizontal text containers would sometimes not work correctly
This commit is contained in:
parent
18eade57ad
commit
57a821e717
|
@ -489,7 +489,8 @@ void TextComponent::onTextChanged()
|
|||
(mSize.y - lineHeight) / 2.0f :
|
||||
0.0f)};
|
||||
|
||||
const float length {mAutoCalcExtent.x ? 0.0f : mSize.x * mRelativeScale};
|
||||
const float length {mAutoCalcExtent.x || mHorizontalScrolling ? 0.0f :
|
||||
mSize.x * mRelativeScale};
|
||||
const float height {mAutoCalcExtent.y ? 0.0f : (mSize.y * mRelativeScale) - lineHeight};
|
||||
const Alignment horizontalAlignment {mHorizontalScrolling ? ALIGN_LEFT : mHorizontalAlignment};
|
||||
const bool multiLine {mAutoCalcExtent.y == 1 || mSize.y > lineHeight};
|
||||
|
|
Loading…
Reference in a new issue