When initialising Layout the styles property in LayoutOptions should be optional.
Current Behavior
When initialising Layout the styles property in LayoutOptions is set to optional but after calling resize the layout is not visible.
Steps to Reproduce
const graphic = new Graphics()
graphic.beginFill(0xff00ff)
graphic.drawRect(0, 0, 50, 50)
graphic.endFill()
const childLayout = new Layout({
content: graphic,
// styles: {} // uncommenting this line makes the graphic visible again
})
childLayout.resize(50, 50) // or removing this line
this.addChild(childLayout)
Expected Behavior
When initialising
Layout
thestyles
property inLayoutOptions
should be optional.Current Behavior
When initialising
Layout
thestyles
property inLayoutOptions
is set to optional but after calling resize the layout is not visible.Steps to Reproduce
This happened when upgrading from 0.2.0 to 0.3.1