mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix disappearing emoji selector button.
This commit is contained in:
parent
feb1e9c4af
commit
133f64f370
1 changed files with 6 additions and 3 deletions
|
@ -4445,9 +4445,12 @@ void HistoryWidget::moveFieldControls() {
|
|||
|
||||
void HistoryWidget::updateFieldSize() {
|
||||
auto kbShowShown = _history && !_kbShown && _keyboard->hasMarkup();
|
||||
auto fieldWidth = width() - _attachToggle->width() - st::historySendRight;
|
||||
fieldWidth -= _send->width();
|
||||
fieldWidth -= _tabbedSelectorToggle->width();
|
||||
auto fieldWidth = width()
|
||||
- _attachToggle->width()
|
||||
- st::historySendRight
|
||||
- _send->width()
|
||||
- _tabbedSelectorToggle->width();
|
||||
if (_sendAs) fieldWidth -= _sendAs->width();
|
||||
if (kbShowShown) fieldWidth -= _botKeyboardShow->width();
|
||||
if (_cmdStartShown) fieldWidth -= _botCommandStart->width();
|
||||
if (_silent) fieldWidth -= _silent->width();
|
||||
|
|
Loading…
Add table
Reference in a new issue