mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(text): Change idealSize calculation
Ideal size of doc can not be used because in the case of using it for boundingRect (which uses 0,0 as the upper-left corner) leads to the clipping right side of RTL languages. Fixed #1887.
This commit is contained in:
parent
dc10309a82
commit
c8512fa984
|
@ -293,7 +293,7 @@ void Text::freeResources()
|
|||
QSizeF Text::idealSize()
|
||||
{
|
||||
if (doc)
|
||||
return QSizeF(qMin(doc->idealWidth(), width), doc->size().height());
|
||||
return doc->size();
|
||||
|
||||
return size;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user