force label to be single-line
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f9ddca52 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f9ddca52 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f9ddca52 Branch: refs/heads/spark Commit: f9ddca525496c8baf35d0350fdd75186d2fb4bb7 Parents: 8a8fc6e Author: Alex Harui <[email protected]> Authored: Fri Jun 10 13:26:32 2016 -0700 Committer: Alex Harui <[email protected]> Committed: Fri Jun 10 13:26:32 2016 -0700 ---------------------------------------------------------------------- .../projects/HTML/src/main/flex/org/apache/flex/html/Label.as | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9ddca52/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Label.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Label.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Label.as index 392dcca..2512a31 100644 --- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Label.as +++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Label.as @@ -156,6 +156,7 @@ package org.apache.flex.html element = document.createElement('span') as WrappedHTMLElement; positioner = element; element.flexjs_wrapper = this; + element.style.whiteSpace = "nowrap"; return element; }
