2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Improve scrolling limits in chat select boxes.

This commit is contained in:
John Preston
2023-04-04 17:17:07 +04:00
parent 9b1c5b1050
commit 7ff0659e91
5 changed files with 128 additions and 35 deletions

View File

@@ -217,16 +217,18 @@ Ui::FlatLabel *EditPrivacyBox::addLabel(
if (!text) {
return nullptr;
}
return container->add(
auto label = object_ptr<Ui::FlatLabel>(
container,
rpl::duplicate(text),
st::boxDividerLabel);
const auto result = label.data();
container->add(
object_ptr<Ui::DividerLabel>(
container,
object_ptr<Ui::FlatLabel>(
container,
rpl::duplicate(text),
st::boxDividerLabel),
std::move(label),
st::settingsDividerLabelPadding),
{ 0, topSkip, 0, 0 }
)->entity();
{ 0, topSkip, 0, 0 });
return result;
}
Ui::FlatLabel *EditPrivacyBox::addLabelOrDivider(