2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Partially support correct rounding near unwrapped media.

This commit is contained in:
John Preston
2022-10-04 11:10:17 +04:00
parent 83008fa358
commit 1e8dfb7315
12 changed files with 107 additions and 32 deletions

View File

@@ -514,8 +514,8 @@ void ConfirmContactBox::prepare() {
auto maxWidth = 0;
if (_comment) {
_comment->setAttachToNext(true);
_contact->setAttachToPrevious(true);
_comment->setAttachToNext(true, _contact.get());
_contact->setAttachToPrevious(true, _comment.get());
_comment->initDimensions();
accumulate_max(maxWidth, _comment->maxWidth());
}