You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2018/03/20 23:33:12 UTC
[royale-asjs] 05/28: fix textfield error setting typeNames in
constructor
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 52f8c6abe983b08aa835f0c6c4bbfc9931fd1aa1
Author: Carlos Rovira <ca...@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.