Discovered that the SceneFlexLayout component was not respecting the minWidth and minHeight options if it doesn't have a parent, this pr fixes so that they are applied without having to have a parent.
The reason why it works when there is a parent is that applyItemStyles function is called with both the own state and parentState and there the minWidth and minHeight options are applied.
Discovered that the
SceneFlexLayout
component was not respecting theminWidth
andminHeight
options if it doesn't have a parent, this pr fixes so that they are applied without having to have a parent.The reason why it works when there is a parent is that
applyItemStyles
function is called with both the ownstate
andparentState
and there theminWidth
andminHeight
options are applied.