This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 4506b154bdc46c1b0e420095482bc2b8505445f6 Author: Alex Harui <aha...@apache.org> AuthorDate: Thu Aug 15 16:17:47 2019 -0700 need another pixel to keep label from wrapping on Safari --- .../projects/MXRoyale/src/main/royale/mx/controls/RadioButton.as | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButton.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButton.as index f5e6398..ecdc8ce 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButton.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButton.as @@ -518,6 +518,14 @@ public class RadioButton extends Button return g; } + override public function get measuredWidth():Number + { + // on Safari, we seem to come up one pixel short sometimes + // causing the label to appear on another line if the + // width is set the the measuredWidth. Probably a fractional error. + return super.measuredWidth + 1; + } + } }