Panel have a shrink rule that is opinionated and do not allow the user to customize the behaviour of panel-content this will end in some tricky workaround to avoid this. IMO is way better to fix this by our side and let the devs free to customize panel-contentas they want.
About the solution proposed, leave the shrink as true (flex: 1 1 auto) will not change the behaviour in any ways, and the same result can always be reached adding a child FlexView with a shrink: false property, in the opposite way instead is very opinionated, and if we want for instance make the content scroll we have to do something like a small workaround (as proposed here for instance)
description
Panel
have a shrink rule that is opinionated and do not allow the user to customize the behaviour ofpanel-content
this will end in some tricky workaround to avoid this. IMO is way better to fix this by our side and let the devs free to customizepanel-content
as they want.how to reproduce
This is the involved line of code :
specs
This is the proposed solution:
misc
About the solution proposed, leave the
shrink
as true (flex: 1 1 auto
) will not change the behaviour in any ways, and the same result can always be reached adding a childFlexView
with ashrink: false
property, in the opposite way instead is very opinionated, and if we want for instance make the content scroll we have to do something like a small workaround (as proposed here for instance)