mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-01-08 19:34:05 +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));
|
linesMaxWidth = Math.max(linesMaxWidth, (int) Math.ceil(lineWidth));
|
||||||
linesMaxWidthWithLeft = Math.max(linesMaxWidthWithLeft, (int) Math.ceil(lineWidth + lineLeft));
|
linesMaxWidthWithLeft = Math.max(linesMaxWidthWithLeft, (int) Math.ceil(lineWidth + lineLeft));
|
||||||
}
|
}
|
||||||
|
lastLineWidthWithLeft = Math.min(lastLineWidthWithLeft, maxWidth);
|
||||||
|
textRealMaxWidthWithLeft = Math.min(textRealMaxWidthWithLeft, maxWidth);
|
||||||
if (hasNonRTL) {
|
if (hasNonRTL) {
|
||||||
textRealMaxWidth = textRealMaxWidthWithLeft;
|
textRealMaxWidth = textRealMaxWidthWithLeft;
|
||||||
if (a == blocksCount - 1) {
|
if (a == blocksCount - 1) {
|
||||||
|
|
Loading…
Reference in a new issue