Repository: flex-asjs
Updated Branches:
  refs/heads/core_js_to_as 443804dd3 -> eb92af671


fix panel background styling


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/369541a0
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/369541a0
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/369541a0

Branch: refs/heads/core_js_to_as
Commit: 369541a0665f59c93ae5961576784d683688df5f
Parents: 443804d
Author: Alex Harui <[email protected]>
Authored: Mon Nov 30 16:43:36 2015 -0800
Committer: Alex Harui <[email protected]>
Committed: Mon Nov 30 16:43:36 2015 -0800

----------------------------------------------------------------------
 .../HTML/as/src/org/apache/flex/html/Panel.as        | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/369541a0/frameworks/projects/HTML/as/src/org/apache/flex/html/Panel.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/Panel.as 
b/frameworks/projects/HTML/as/src/org/apache/flex/html/Panel.as
index 6219d9d..e9c5986 100644
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/Panel.as
+++ b/frameworks/projects/HTML/as/src/org/apache/flex/html/Panel.as
@@ -20,6 +20,11 @@ package org.apache.flex.html
 {
        import org.apache.flex.core.IPanelModel;
 
+    COMPILE::JS
+    {
+        import org.apache.flex.core.WrappedHTMLElement;
+    }
+    
        [Event(name="close", type="org.apache.flex.events.Event")]
        
        /**
@@ -103,6 +108,14 @@ package org.apache.flex.html
                {
                        IPanelModel(model).showCloseButton = value;
                }
-                               
+               
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+            super.createElement();
+            element.className = "Panel";
+            typeNames = "Panel";
+            return element;
+        }
        }
 }

Reply via email to