This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch feature/jewel-ui-set
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/jewel-ui-set by this 
push:
     new a1d9fea  fix textfield error setting typeNames in constructor
a1d9fea is described below

commit a1d9fea816ed0024af099a349e09e34964102f65
Author: Carlos Rovira <carlosrov...@apache.org>
AuthorDate: Tue Mar 13 16:31:10 2018 +0100

    fix textfield error setting typeNames in constructor
---
 .../royale/JewelExample/src/main/royale/TextInputPlayGround.mxml    | 6 ++----
 .../Jewel/src/main/royale/org/apache/royale/jewel/TextField.as      | 4 ++--
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git 
a/examples/royale/JewelExample/src/main/royale/TextInputPlayGround.mxml 
b/examples/royale/JewelExample/src/main/royale/TextInputPlayGround.mxml
index aa8c81a..489bfb9 100644
--- a/examples/royale/JewelExample/src/main/royale/TextInputPlayGround.mxml
+++ b/examples/royale/JewelExample/src/main/royale/TextInputPlayGround.mxml
@@ -22,9 +22,7 @@ limitations under the License.
                  xmlns:j="library://ns.apache.org/royale/jewel">
     
        
-       
-       <j:TextField text="Text Input" width="120" height="40"/>
-
        <j:RadioButton/>
-
+       <j:TextField text="Text Input" width="120" height="40"/>
+       
 </js:Group>
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextField.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextField.as
index 145ab37..69af720 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextField.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextField.as
@@ -49,6 +49,8 @@ package org.apache.royale.jewel
                public function TextField()
                {
                        super();
+
+            typeNames = "jewel textField";
                }
 
         COMPILE::JS
@@ -82,8 +84,6 @@ package org.apache.royale.jewel
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-            typeNames = "TextField";
-
             var div:HTMLDivElement = document.createElement('div') as 
HTMLDivElement;
             div.className = typeNames;
             

-- 
To stop receiving notification emails like this one, please contact
carlosrov...@apache.org.

Reply via email to