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()
|
auto availRowWidth = widthNoMargins()
|
||||||
- margin.left()
|
- margin.left()
|
||||||
- margin.right();
|
- margin.right();
|
||||||
|
if (availRowWidth > 0) {
|
||||||
weak->resizeToNaturalWidth(availRowWidth);
|
weak->resizeToNaturalWidth(availRowWidth);
|
||||||
|
}
|
||||||
weak->heightValue(
|
weak->heightValue(
|
||||||
) | rpl::start_with_next_done([=] {
|
) | rpl::start_with_next_done([=] {
|
||||||
if (!_inResize) {
|
if (!_inResize) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue