royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [royale-asjs] 05/49: fix textfield error setting typeNames in constructor
Date Tue, 27 Mar 2018 08:32:00 GMT
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

commit 0153d19aac698690982037b532bc5e3c4c83f1e4
Author: Carlos Rovira <carlosrovira@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
carlosrovira@apache.org.

Mime
View raw message