mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-10-17 14:19:43 +00:00
Add EditPeerPermissionsBox.
This commit is contained in:
@@ -36,11 +36,13 @@ QMargins VerticalLayout::getMargins() const {
|
||||
int VerticalLayout::naturalWidth() const {
|
||||
auto result = 0;
|
||||
for (auto &row : _rows) {
|
||||
auto natural = row.widget->naturalWidth();
|
||||
const auto natural = row.widget->naturalWidth();
|
||||
if (natural < 0) {
|
||||
return natural;
|
||||
}
|
||||
accumulate_max(result, natural);
|
||||
accumulate_max(
|
||||
result,
|
||||
row.margin.left() + natural + row.margin.right());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user