Fix RTL text in bot attach webview main button.
This commit is contained in:
parent
f258b054e8
commit
d4cdd67128
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue