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 2020/08/09 13:46:50 UTC
[royale-asjs] branch develop updated: jewel-sectioncontent: Better
solution to fix the issue with sizing in components inside SectionContent
containers.
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 1399876 jewel-sectioncontent: Better solution to fix the issue with sizing in components inside SectionContent containers.
1399876 is described below
commit 1399876395aac8a8f72ae0ed50b58314196b6e91
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Aug 9 15:46:40 2020 +0200
jewel-sectioncontent: Better solution to fix the issue with sizing in components inside SectionContent containers.
---
.../Jewel/src/main/royale/org/apache/royale/jewel/SectionContent.as | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/SectionContent.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/SectionContent.as
index 409128b..3f582f6 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/SectionContent.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/SectionContent.as
@@ -50,6 +50,9 @@ package org.apache.royale.jewel
super();
typeNames = "jewel section";
+
+ // we need to add this for propoer sizing of content inside this container
+ addClass("is-selected");
}
/**
@@ -58,7 +61,7 @@ package org.apache.royale.jewel
COMPILE::JS
override protected function createElement():WrappedHTMLElement
{
- return addElementToWrapper(this,'section');
+ return addElementToWrapper(this, 'section');
}
private var _isSelected:Boolean;