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 44a2e75731 Improvements to overflow bead.
44a2e75731 is described below

commit 44a2e75731a037050cf043b4f1f7ec6b8fb9506c
Author: Yishay Weiss <[email protected]>
AuthorDate: Wed Jun 22 13:29:28 2022 +0300

    Improvements to overflow bead.
    
    Make sure whitespaces are reversed correctly
---
 .../royale/org/apache/royale/html/beads/ReversibleEllipsisOverflow.as | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/ReversibleEllipsisOverflow.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/ReversibleEllipsisOverflow.as
index c48c2097dd..7f06fae98d 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/ReversibleEllipsisOverflow.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/ReversibleEllipsisOverflow.as
@@ -51,6 +51,7 @@ package org.apache.royale.html.beads
                private var _oldOverflow:String;
                private var _oldTextOverflow:String;
                private var _oldDisplay:String;
+               private var _oldWhiteSpace:String;
 
                /**
                 *  @copy org.apache.royale.core.IBead#strand
@@ -85,9 +86,11 @@ package org.apache.royale.html.beads
                                _oldOverflow = style.overflow;
                                _oldTextOverflow = style.textOverflow;
                                _oldDisplay = style.display;
+                               _oldWhiteSpace = style.whiteSpace;
                                style.overflow = "hidden";
                                style.textOverflow = "ellipsis";
                                style.display = "block";
+                               style.whiteSpace = "nowrap";
                        }
 
                }
@@ -109,6 +112,7 @@ package org.apache.royale.html.beads
                                style.overflow = _oldOverflow;
                                style.textOverflow = _oldTextOverflow;
                                style.display = _oldDisplay;
+                               style.whiteSpace = _oldWhiteSpace;
                        }
                }
 

Reply via email to