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
The following commit(s) were added to refs/heads/develop by this push: new 9cc8965 clip dropdowntext 9cc8965 is described below commit 9cc8965d1ebfa2dea300521dfb32f78c184257ae Author: Alex Harui <aha...@apache.org> AuthorDate: Sun May 10 10:44:37 2020 -0700 clip dropdowntext --- .../main/royale/spark/components/supportClasses/DropDownListButton.as | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListButton.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListButton.as index 9b9de07..fd1514b 100644 --- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListButton.as +++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListButton.as @@ -60,7 +60,8 @@ package spark.components.supportClasses { if (h < 4) return; element.innerHTML = '<svg width="' + w + 'px" height="' + - h + 'px" xmlns="http://www.w3.org/2000/svg"><text y="3px">' + + h + 'px" xmlns="http://www.w3.org/2000/svg"><clipPath id="txtclip"><rect x="0" y="0" height="' + h + + 'px" width="' + (w - 29) + 'px"/></clipPath><text y="3px" clip-path="url(#txtclip)">' + label + '</text><style><![CDATA[' + 'text{ dominant-baseline: hanging;' + /* font: 12px Verdana, Helvetica, Arial, sans-serif;*/