2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Fix radiobutton list boxes dimensions.

Closes #3655
This commit is contained in:
John Preston
2017-07-12 14:05:29 +03:00
parent 56cb5ac9c6
commit 7b4393ba48
3 changed files with 3 additions and 4 deletions

View File

@@ -131,8 +131,7 @@ void LanguageBox::refresh() {
refreshLanguages();
_inner->refresh();
auto maxHeight = st::boxOptionListPadding.top() + st::langsButton.margin.top() + _languages.size() * (st::langsButton.height + st::boxOptionListSkip) - st::boxOptionListSkip + st::boxOptionListPadding.bottom() + st::langsButton.margin.bottom() + st::boxPadding.bottom();
setDimensions(st::langsWidth, qMin(maxHeight, st::boxMaxListHeight));
setDimensions(st::langsWidth, qMin(_inner->height(), st::boxMaxListHeight));
}
void LanguageBox::refreshLanguages() {