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

aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 14307f6a2803798b1d45a090b6a5437d525c3467
Author: Alex Harui <[email protected]>
AuthorDate: Wed May 16 15:14:54 2018 -0700

    fix sizing in JS
---
 .../projects/MXRoyale/src/main/royale/mx/controls/TextInput.as    | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as
index 043eaa5..6e513be 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as
@@ -1782,6 +1782,14 @@ public class TextInput extends UIComponent implements 
ITextInput
     //
     
//--------------------------------------------------------------------------
 
+    COMPILE::JS
+    override public function setActualSize(w:Number, h:Number):void
+    {
+        // For HTML/JS, we only set the size if there is an explicit
+        // size set. 
+        if (!isNaN(explicitWidth)) setWidth(w);
+        if (!isNaN(explicitHeight)) setHeight(h);
+    }
 
     
//--------------------------------------------------------------------------
     //

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to