Fixed sliders in footer in statistics info while restoring state.
This commit is contained in:
parent
29f8493a82
commit
d0875a1178
|
@ -282,9 +282,10 @@ ChartWidget::Footer::Footer(not_null<Ui::RpWidget*> parent)
|
||||||
Qt::RoundCap) {
|
Qt::RoundCap) {
|
||||||
sizeValue(
|
sizeValue(
|
||||||
) | rpl::take(2) | rpl::start_with_next([=](const QSize &s) {
|
) | rpl::take(2) | rpl::start_with_next([=](const QSize &s) {
|
||||||
moveSide(false, s.width());
|
const auto current = xPercentageLimits();
|
||||||
moveSide(true, 0);
|
if (current.min == current.max) {
|
||||||
update();
|
setXPercentageLimits({ 0., 1. });
|
||||||
|
}
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
mouseStateChanged(
|
mouseStateChanged(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user