Don't initially resizeToWidth(0).

This commit is contained in:
John Preston 2023-10-29 07:08:52 +04:00
parent 287af101d0
commit dc8313f6ae

View file

@ -129,7 +129,9 @@ RpWidget *VerticalLayout::insertChild(
auto availRowWidth = widthNoMargins()
- margin.left()
- margin.right();
weak->resizeToNaturalWidth(availRowWidth);
if (availRowWidth > 0) {
weak->resizeToNaturalWidth(availRowWidth);
}
weak->heightValue(
) | rpl::start_with_next_done([=] {
if (!_inResize) {