开发者

How is the height of a component related to its skin file?

开发者 https://www.devze.com 2023-03-02 13:44 出处:网络
I have a panel with a custom skin whose height is smaller than its hostcomponent\'s height. When I layout this out in a vgroup, the component\'s size doesn\'t reflect th开发者_运维百科e skin\'s smalle

I have a panel with a custom skin whose height is smaller than its hostcomponent's height. When I layout this out in a vgroup, the component's size doesn't reflect th开发者_运维百科e skin's smaller size.

Is there a way to completely delegate the size of a container to the skin class?


Try to set component's minHeight or measuredMinHeight in measure() to the desired size.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号