You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2021/07/18 11:43:51 UTC
[royale-asjs] branch develop updated: Fix word-wrapping in TabBar
tab labels,
causing measuring to be wrong for layouts involving labels with hyphens (-)
and whitespace.
This is an automated email from the ASF dual-hosted git repository.
yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 314316c Fix word-wrapping in TabBar tab labels, causing measuring to be wrong for layouts involving labels with hyphens (-) and whitespace.
new 7844312 Merge pull request #1045 from estanglerbm/spark-tabbar-nowrap
314316c is described below
commit 314316c281bb4625c7627b06cf2317a96617d884
Author: Edward Stangler <es...@bradmark.com>
AuthorDate: Mon Jan 11 01:25:51 2021 -0600
Fix word-wrapping in TabBar tab labels, causing measuring to be wrong for layouts involving labels with hyphens (-) and whitespace.
---
.../spark/components/supportClasses/SparkTextButtonItemRenderer.as | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SparkTextButtonItemRenderer.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SparkTextButtonItemRenderer.as
index bea69d8..5aa6919 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SparkTextButtonItemRenderer.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SparkTextButtonItemRenderer.as
@@ -48,6 +48,10 @@ package spark.components.supportClasses
{
super();
addEventListener("click", clickHandler);
+ COMPILE::JS
+ {
+ element.style.whiteSpace = "nowrap";
+ }
typeNames += " SparkTextButtonItemRenderer";
}