mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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() {
|
void HistoryWidget::updateFieldSize() {
|
||||||
auto kbShowShown = _history && !_kbShown && _keyboard->hasMarkup();
|
auto kbShowShown = _history && !_kbShown && _keyboard->hasMarkup();
|
||||||
auto fieldWidth = width() - _attachToggle->width() - st::historySendRight;
|
auto fieldWidth = width()
|
||||||
fieldWidth -= _send->width();
|
- _attachToggle->width()
|
||||||
fieldWidth -= _tabbedSelectorToggle->width();
|
- st::historySendRight
|
||||||
|
- _send->width()
|
||||||
|
- _tabbedSelectorToggle->width();
|
||||||
|
if (_sendAs) fieldWidth -= _sendAs->width();
|
||||||
if (kbShowShown) fieldWidth -= _botKeyboardShow->width();
|
if (kbShowShown) fieldWidth -= _botKeyboardShow->width();
|
||||||
if (_cmdStartShown) fieldWidth -= _botCommandStart->width();
|
if (_cmdStartShown) fieldWidth -= _botCommandStart->width();
|
||||||
if (_silent) fieldWidth -= _silent->width();
|
if (_silent) fieldWidth -= _silent->width();
|
||||||
|
|
Loading…
Add table
Reference in a new issue