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 2019/11/23 06:20:49 UTC
[royale-asjs] 02/02: better handling of validation. Should fix #570
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 43157237547eb2941d29425f8efe15e5d68cecb0
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Nov 22 22:20:26 2019 -0800
better handling of validation. Should fix #570
---
.../MXRoyale/src/main/royale/mx/controls/beads/ToolTipBead.as | 1 -
.../projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 2 --
frameworks/projects/SparkRoyale/src/main/resources/defaults.css | 9 +++++++++
.../SparkRoyale/src/main/royale/spark/components/TextInput.as | 1 +
4 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ToolTipBead.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ToolTipBead.as
index 838900e..6bae801 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ToolTipBead.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ToolTipBead.as
@@ -43,7 +43,6 @@ package mx.controls.beads
*/
override public function set strand(value:IStrand):void
{
- if (value == null) return;
super.strand = value;
IEventDispatcher(value).addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false);
}
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index 70d2ee7..7d31c30 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -3285,8 +3285,6 @@ COMPILE::JS
addBead(_toolTipBead);
}
else if ((_toolTip == null || _toolTip == "") && _toolTipBead != null) {
- removeBead(_toolTipBead);
- _toolTipBead = null;
}
if (_toolTipBead) {
diff --git a/frameworks/projects/SparkRoyale/src/main/resources/defaults.css b/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
index ce22cca..837bfa5 100644
--- a/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
+++ b/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
@@ -180,6 +180,15 @@ SparkTextButtonItemRenderer
IBeadModel: ClassReference("org.apache.royale.html.beads.models.ToggleButtonModel");
}
+TextInput
+{
+ border-color: #000000;
+ border-width: 1px;
+ background-color: #FFFFFF;
+ font-size: 11px;
+ font-family: Arial;
+}
+
TextArea
{
border-style: solid;
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
index 9dfbda9..bc232b8 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
@@ -254,6 +254,7 @@ public class TextInput extends SkinnableTextBase
public function TextInput()
{
super();
+ typeNames = "TextInput";
}
//--------------------------------------------------------------------------