Browse Source

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.
reviewable/pr3717/r2
Diadlo 9 years ago
parent
commit
c8512fa984
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 2
      src/chatlog/content/text.cpp

2
src/chatlog/content/text.cpp

@ -293,7 +293,7 @@ void Text::freeResources() @@ -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…
Cancel
Save