You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/12/12 23:47:26 UTC
[royale-asjs] 25/42: jewel-buttonbar: other style with buttons with
no equal widths
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
commit 3ac9fad879d40348115b0e6d8af1047ccfb1d7cf
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Tue Dec 3 07:49:43 2019 +0100
jewel-buttonbar: other style with buttons with no equal widths
---
frameworks/projects/Jewel/src/main/resources/defaults.css | 3 +++
frameworks/projects/Jewel/src/main/sass/components/_layout.sass | 3 +++
2 files changed, 6 insertions(+)
diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css b/frameworks/projects/Jewel/src/main/resources/defaults.css
index 415fecc..9236006 100644
--- a/frameworks/projects/Jewel/src/main/resources/defaults.css
+++ b/frameworks/projects/Jewel/src/main/resources/defaults.css
@@ -1073,6 +1073,9 @@ j|Label {
.layout.horizontal.samewidth > * {
flex: 1 0;
}
+.layout.horizontal.nosamewidth > * {
+ flex: 1 0 auto;
+}
.layout.vertical {
flex-direction: column;
flex-wrap: nowrap;
diff --git a/frameworks/projects/Jewel/src/main/sass/components/_layout.sass b/frameworks/projects/Jewel/src/main/sass/components/_layout.sass
index 6eaf222..381f003 100644
--- a/frameworks/projects/Jewel/src/main/sass/components/_layout.sass
+++ b/frameworks/projects/Jewel/src/main/sass/components/_layout.sass
@@ -84,6 +84,9 @@ $gap-size: 10px !default
&.samewidth
> *
flex: 1 0
+ &.nosamewidth
+ > *
+ flex: 1 0 auto
// Vertical
&.vertical