Pre-subnode update.

This commit is contained in:
2023-07-10 12:04:34 -07:00
parent 835d5e5892
commit 1c7abbf140
3 changed files with 16 additions and 7 deletions

View File

@ -126,7 +126,7 @@ void UILabel::rebufferQuads(const std::vector<struct UILabelText> newTexts) {
// Determine font dimensions.
auto itText = newTexts.begin();
while(itText != newTexts.end()) {
position.y = mathMax<float_t>(position.y, itText->style.size * this->lineHeight);
position.y = mathMax<float_t>(position.y, itText->style.size/* this->lineHeight - THIS PART WOULD TAKE THE LINE HEIGHT INTO CONSIDERATION ON THE FIRST/INITIAL LINE */);
++itText;
}