This is an automated email from the ASF dual-hosted git repository.

carlosrovira 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 04fbee8  Make label avoid not break when is multiline and the string 
doesn't have any breacking characters like spaces or "-" (so not behavinf as 
multiline label)
04fbee8 is described below

commit 04fbee89b3e1fa56e26d876246fefba4bb9d9eba
Author: Carlos Rovira <[email protected]>
AuthorDate: Sun Sep 23 09:29:21 2018 +0200

    Make label avoid not break when is multiline and the string doesn't have 
any breacking characters like spaces or "-" (so not behavinf as multiline label)
---
 frameworks/projects/Jewel/src/main/resources/defaults.css      | 3 ++-
 frameworks/projects/Jewel/src/main/sass/components/_label.sass | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css 
b/frameworks/projects/Jewel/src/main/resources/defaults.css
index 2b96265..226476f 100644
--- a/frameworks/projects/Jewel/src/main/resources/defaults.css
+++ b/frameworks/projects/Jewel/src/main/resources/defaults.css
@@ -754,7 +754,8 @@ j|ImageButton {
 }
 
 .jewel.label.multiline {
-  white-space: normal;
+  white-space: pre-wrap;
+  word-wrap: break-word;
   width: 100%;
 }
 
diff --git a/frameworks/projects/Jewel/src/main/sass/components/_label.sass 
b/frameworks/projects/Jewel/src/main/sass/components/_label.sass
index 264df89..d26c0ea 100644
--- a/frameworks/projects/Jewel/src/main/sass/components/_label.sass
+++ b/frameworks/projects/Jewel/src/main/sass/components/_label.sass
@@ -22,7 +22,8 @@
        white-space: nowrap
 
 .jewel.label.multiline
-       white-space: normal
+       white-space: pre-wrap
+       word-wrap: break-word
        width: 100%
 
 

Reply via email to