wanadev / PhotonUI

A javascript framework to create user interfaces
http://wanadev.github.io/PhotonUI/
BSD 3-Clause "New" or "Revised" License
63 stars 20 forks source link

Layout name and widget parenting #156

Closed jbghoul closed 4 years ago

jbghoul commented 4 years ago

Layout widget name is defined after constructor parameters are applied

As a consequence, children setter can be called before layout has a name, so chidren propery "parentName" is null

new Layout({
    children: [new Widget()]
});

layout.children[0].parent === null