Fixed layout of names in profile peer list block.

This commit is contained in:
John Preston 2016-11-04 11:53:43 +03:00
parent 7bb3b4d807
commit 74253fb7f2

View file

@ -82,8 +82,8 @@ void PeerListWidget::paintItem(Painter &p, int x, int y, Item *item, bool select
} }
int memberRowWidth = width() - x; int memberRowWidth = width() - x;
accumulate_min(memberRowWidth, st::profileBlockWideWidthMax);
if (selected) { if (selected) {
accumulate_min(memberRowWidth, st::profileBlockWideWidthMax);
paintOutlinedRect(p, x, y, memberRowWidth, st::profileMemberHeight); paintOutlinedRect(p, x, y, memberRowWidth, st::profileMemberHeight);
} }
int skip = st::profileMemberPhotoPosition.x(); int skip = st::profileMemberPhotoPosition.x();