Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(text): Change idealSize calculation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Diadlo committed Sep 21, 2016
1 parent dc10309 commit c8512fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chatlog/content/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c8512fa

Please sign in to comment.