mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
5b17416177
commit
9229c57e7a
1 changed files with 3 additions and 1 deletions
|
@ -3129,7 +3129,9 @@ QRect Message::countGeometry() const {
|
||||||
contentLeft += (availableWidth - contentWidth) / 2;
|
contentLeft += (availableWidth - contentWidth) / 2;
|
||||||
}
|
}
|
||||||
} else if (contentWidth < availableWidth && commentsRoot) {
|
} else if (contentWidth < availableWidth && commentsRoot) {
|
||||||
contentLeft += ((st::msgMaxWidth + 2 * st::msgPhotoSkip) - contentWidth) / 2;
|
contentLeft += std::max(
|
||||||
|
((st::msgMaxWidth + 2 * st::msgPhotoSkip) - contentWidth) / 2,
|
||||||
|
0);
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto contentTop = marginTop();
|
const auto contentTop = marginTop();
|
||||||
|
|
Loading…
Add table
Reference in a new issue