aharui commented on issue #790: Bad Label with Box Layout On RadioButtons URL: https://github.com/apache/royale-asjs/issues/790#issuecomment-608517373 Well, you can check if "isWidthSizedToContent()" before sending layoutNeeded, but otherwise, that is the way things work in MXRoyale. In Flex, the RadioButton would call invalidateSize() on itself when the label changed, and the LayoutManager would eventually get around to calling invalidateSize() on the parent for you. MXRoyale is currently not using a LayoutManager because of potential issues with deferred updates in browsers. So yes, in many cases you have to tell the parent to layout again. In Basic, the "rules" are different. For PAYG reasons, Basic components should not automatically call layoutNeeded on the parent. As you said, it would be wasteful in many scenarios. Instead the app developer is supposed to hook up just the properties they know affect layout to the parent layout via binding, custom code, or LayoutChangeNotifier.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
