Fix RTL text in bot attach webview main button.

This commit is contained in:
John Preston 2022-10-07 13:09:33 +04:00
parent f258b054e8
commit d4cdd67128
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ void Panel::Button::paintEvent(QPaintEvent *e) {
const auto textTop = _st.padding.top() + _st.textTop;
const auto textLeft = padding + (space - textWidth) / 2;
p.setPen(_fg);
_text.drawLeftElided(p, textLeft, textTop, space, width());
_text.drawLeftElided(p, textLeft, textTop, textWidth, width());
}
QImage Panel::Button::prepareRippleMask() const {