parent
4e95d62018
commit
3fe9ba41ba
|
@ -1446,6 +1446,8 @@ void Widget::startWidthAnimation() {
|
||||||
st::columnMinimalWidthLeft,
|
st::columnMinimalWidthLeft,
|
||||||
scrollGeometry.height());
|
scrollGeometry.height());
|
||||||
_scroll->setGeometry(grabGeometry);
|
_scroll->setGeometry(grabGeometry);
|
||||||
|
_inner->resize(st::columnMinimalWidthLeft, _inner->height());
|
||||||
|
_inner->setNarrowRatio(0.);
|
||||||
Ui::SendPendingMoveResizeEvents(_scroll);
|
Ui::SendPendingMoveResizeEvents(_scroll);
|
||||||
auto image = QImage(
|
auto image = QImage(
|
||||||
grabGeometry.size() * cIntRetinaFactor(),
|
grabGeometry.size() * cIntRetinaFactor(),
|
||||||
|
@ -1457,7 +1459,10 @@ void Widget::startWidthAnimation() {
|
||||||
Ui::RenderWidget(p, _scroll);
|
Ui::RenderWidget(p, _scroll);
|
||||||
}
|
}
|
||||||
_widthAnimationCache = Ui::PixmapFromImage(std::move(image));
|
_widthAnimationCache = Ui::PixmapFromImage(std::move(image));
|
||||||
|
if (scrollGeometry != grabGeometry) {
|
||||||
_scroll->setGeometry(scrollGeometry);
|
_scroll->setGeometry(scrollGeometry);
|
||||||
|
updateControlsGeometry();
|
||||||
|
}
|
||||||
_scroll->hide();
|
_scroll->hide();
|
||||||
updateStoriesVisibility();
|
updateStoriesVisibility();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue