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:
ProPuke
2015-08-27 23:45:14 +01:00
committed by Joshua Granick
parent 74af0a6143
commit d4cc390c45

View File

@@ -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);
}