fix falsy check in setting custom widget positions, closes #3060

This commit is contained in:
zadam 2022-08-14 15:00:18 +02:00
parent 201ef7fcd5
commit aebdbdf8be

View file

@ -17,7 +17,7 @@ export default class Container extends BasicWidget {
super.child(...components);
for (const component of components) {
if (!component.position) {
if (component.position === undefined) {
component.position = this.positionCounter;
this.positionCounter += 10;
}