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 2018/02/05 04:46:58 UTC
[royale-asjs] 01/02: fix multiline
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 fd4648ec4165b2e4131c12c03d8ea725c3cdbc58
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sun Feb 4 20:46:04 2018 -0800
fix multiline
---
.../Basic/src/main/royale/org/apache/royale/html/MultilineLabel.as | 2 ++
1 file changed, 2 insertions(+)
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/MultilineLabel.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/MultilineLabel.as
index 108a51e..4e76394 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/MultilineLabel.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/MultilineLabel.as
@@ -60,6 +60,8 @@ package org.apache.royale.html
override protected function createElement():WrappedHTMLElement
{
addElementToWrapper(this,'div');
+ textNode = document.createTextNode(text) as Text;
+ element.appendChild(textNode);
element.style.whiteSpace = 'normal'; // was nowrap on safari?
return element;
}
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.