You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/11/08 19:17:20 UTC
[royale-asjs] 02/03: fix dual style lookup
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 d864f43dea6aff12b7b9d372e1d84441c7f460f9
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Nov 8 11:16:07 2018 -0800
fix dual style lookup
---
.../royale/mx/charts/chartClasses/DualStyleObject.as | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/charts/chartClasses/DualStyleObject.as b/frameworks/projects/MXRoyale/src/main/royale/mx/charts/chartClasses/DualStyleObject.as
index 82fd857..3fe18de 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/charts/chartClasses/DualStyleObject.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/charts/chartClasses/DualStyleObject.as
@@ -279,6 +279,24 @@ public class DualStyleObject extends UIComponent
}
*/
+
+ override public function getStyle(styleProp:String):*
+ {
+ var value:*;
+ if (internalStyleName != null)
+ {
+ var internalClassSelector:CSSStyleDeclaration;
+ internalClassSelector =
+ styleManager.getStyleDeclaration("." + internalStyleName);
+ value = internalClassSelector.getStyle(styleProp);
+ }
+ if (value === undefined)
+ {
+ value = super.getStyle(styleProp)
+ }
+ return value;
+ }
+
}
}