mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-04 05:10:06 +08:00
change Layout::relayout
This commit is contained in:
parent
2886c7d72c
commit
3c46d3aded
@ -505,7 +505,7 @@ void Layout::relayout(bool force){
|
||||
mLineCount=0;
|
||||
mLines.clear();
|
||||
measureSize(L"",extents,&fontextents);
|
||||
mLineHeight = fontextents.height*mSpacingMult+mSpacingAdd;
|
||||
mLineHeight = (fontextents.ascent +fontextents.descent)*mSpacingMult+mSpacingAdd;
|
||||
for(int i = 0; mMultiline && (i < mText.length());i++){
|
||||
char breaks[2];
|
||||
wchar_t wch[2];
|
||||
|
Loading…
Reference in New Issue
Block a user