Don't initially resizeToWidth(0).
This commit is contained in:
parent
287af101d0
commit
dc8313f6ae
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue