Skip to content

Commit

Permalink
Alpha 1.0.31: Fix layout for message edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Apr 11, 2017
1 parent 4b7e575 commit eaf1e2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Telegram/SourceFiles/historywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3654,7 +3654,7 @@ QRect HistoryWidget::getMembersShowAreaGeometry() const {
int membersTextWidth = _titlePeerTextWidth;
int membersTextHeight = st::topBarHeight - membersTextTop;

return rtlrect(membersTextLeft, membersTextTop, membersTextWidth, membersTextHeight, width());
return myrtlrect(membersTextLeft, membersTextTop, membersTextWidth, membersTextHeight);
}

void HistoryWidget::setMembersShowAreaActive(bool active) {
Expand Down Expand Up @@ -6093,7 +6093,7 @@ void HistoryWidget::paintEditHeader(Painter &p, const QRect &rect, int left, int
}

p.setFont(st::msgServiceNameFont);
p.drawTextLeft(left, top + st::msgReplyPadding.top() + st::msgServiceNameFont->ascent, width(), lang(lng_edit_message));
p.drawTextLeft(left, top + st::msgReplyPadding.top(), width(), lang(lng_edit_message));

if (!_replyEditMsg) return;

Expand Down Expand Up @@ -6163,7 +6163,7 @@ void HistoryWidget::drawPinnedBar(Painter &p) {
p.fillRect(myrtlrect(0, top, _chatWidth, st::historyReplyHeight), st::historyPinnedBg);

top += st::msgReplyPadding.top();
QRect rbar(rtlrect(st::msgReplyBarSkip + st::msgReplyBarPos.x(), top + st::msgReplyBarPos.y(), st::msgReplyBarSize.width(), st::msgReplyBarSize.height(), _chatWidth));
QRect rbar(myrtlrect(st::msgReplyBarSkip + st::msgReplyBarPos.x(), top + st::msgReplyBarPos.y(), st::msgReplyBarSize.width(), st::msgReplyBarSize.height()));
p.fillRect(rbar, st::msgInReplyBarColor);

int32 left = st::msgReplyBarSkip + st::msgReplyBarSkip;
Expand Down

0 comments on commit eaf1e2b

Please sign in to comment.