mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Allow layers with fixed-bottom to stick-to-bottom.
This commit is contained in:
@@ -550,17 +550,7 @@ QPointer<Ui::RpWidget> Premium::createPinnedToBottom(
|
||||
st::premiumPreviewBox.button.textTop,
|
||||
outer);
|
||||
}, label->lifetime());
|
||||
auto padding = st::settingsPremiumButtonPadding;
|
||||
const auto paddingBottom = padding.bottom();
|
||||
padding.setBottom(paddingBottom - st::boxRadius);
|
||||
content->add(std::move(result), padding);
|
||||
|
||||
content->add(
|
||||
object_ptr<Ui::SlideWrap<Ui::FixedHeightWidget>>(
|
||||
content,
|
||||
object_ptr<Ui::FixedHeightWidget>(content, st::boxRadius))
|
||||
)->setDuration(0)->toggleOn(_wrap.value(
|
||||
) | rpl::map(rpl::mappers::_1 != Info::Wrap::Layer));
|
||||
content->add(std::move(result), st::settingsPremiumButtonPadding);
|
||||
|
||||
return Ui::MakeWeak(not_null<Ui::RpWidget*>{ content });
|
||||
}
|
||||
|
Reference in New Issue
Block a user