mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +01:00
Update MessageObject.java
sometimes when we have a lot of space and also mix of RTL and LTR characters background width will be more than display width.
This commit is contained in:
parent
19599e6ea4
commit
97fec7ab12
1 changed files with 2 additions and 0 deletions
|
@ -4055,6 +4055,8 @@ public class MessageObject {
|
|||
linesMaxWidth = Math.max(linesMaxWidth, (int) Math.ceil(lineWidth));
|
||||
linesMaxWidthWithLeft = Math.max(linesMaxWidthWithLeft, (int) Math.ceil(lineWidth + lineLeft));
|
||||
}
|
||||
lastLineWidthWithLeft = Math.min(lastLineWidthWithLeft, maxWidth);
|
||||
textRealMaxWidthWithLeft = Math.min(textRealMaxWidthWithLeft, maxWidth);
|
||||
if (hasNonRTL) {
|
||||
textRealMaxWidth = textRealMaxWidthWithLeft;
|
||||
if (a == blocksCount - 1) {
|
||||
|
|
Loading…
Reference in a new issue