mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-04 21:27:41 +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;
|
mLineCount=0;
|
||||||
mLines.clear();
|
mLines.clear();
|
||||||
measureSize(L"",extents,&fontextents);
|
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++){
|
for(int i = 0; mMultiline && (i < mText.length());i++){
|
||||||
char breaks[2];
|
char breaks[2];
|
||||||
wchar_t wch[2];
|
wchar_t wch[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user