fixed: legacy word-wrapped TextFields would sometimes leave an extra empty line below
disclaimer: I just pushed buttons and this worked (fixed my test cases). I actually have no idea what I'm doing.
This commit is contained in:
@@ -1990,7 +1990,9 @@ void TextField::Layout(const Matrix &inMatrix)
|
||||
line.mCharGroup0 = mCharGroups.size()-1;
|
||||
line.mCharInGroup0 = last->mString.size();
|
||||
}
|
||||
charY += line.mMetrics.height;
|
||||
if ((endsWidthNewLine && multiline) || mLines.empty()){
|
||||
charY += line.mMetrics.height;
|
||||
}
|
||||
mLines.push_back(line);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user