mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fix sticker suggestions by emoji.
Regression was introduced in 27f248645c
.
This commit is contained in:
@@ -646,7 +646,7 @@ void FieldAutocompleteInner::paintEvent(QPaintEvent *e) {
|
|||||||
w = std::max(size.width(), 1);
|
w = std::max(size.width(), 1);
|
||||||
h = std::max(size.height(), 1);
|
h = std::max(size.height(), 1);
|
||||||
} else {
|
} else {
|
||||||
const auto coef = std::max(
|
const auto coef = std::min(
|
||||||
std::min(
|
std::min(
|
||||||
(st::stickerPanSize.width() - st::buttonRadius * 2) / float64(document->dimensions.width()),
|
(st::stickerPanSize.width() - st::buttonRadius * 2) / float64(document->dimensions.width()),
|
||||||
(st::stickerPanSize.height() - st::buttonRadius * 2) / float64(document->dimensions.height())),
|
(st::stickerPanSize.height() - st::buttonRadius * 2) / float64(document->dimensions.height())),
|
||||||
|
Reference in New Issue
Block a user