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/21 09:02:39 UTC
[royale-asjs] branch develop updated: jewel-card: expanded content
need to remove simple if used alone
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 e760ec8 jewel-card: expanded content need to remove simple if used alone
e760ec8 is described below
commit e760ec8b740a8a0447f1e2f84dc3b9b1f3f47ab4
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Aug 21 11:02:15 2020 +0200
jewel-card: expanded content need to remove simple if used alone
---
.../supportClasses/card/CardExpandedContent.as | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/card/CardExpandedContent.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/card/CardExpandedContent.as
index 010bc6e..a44f4f0 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/card/CardExpandedContent.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/card/CardExpandedContent.as
@@ -18,6 +18,7 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.jewel.supportClasses.card
{
+ import org.apache.royale.jewel.Card;
import org.apache.royale.jewel.VContainer;
/**
@@ -51,5 +52,26 @@ package org.apache.royale.jewel.supportClasses.card
typeNames = "card-expanded-content";
}
+
+ /**
+ * This container means Card structure is complex, so we remove Card's simple style
+ * that is set by default on the Card
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9.7
+ */
+ override public function addedToParent():void
+ {
+ super.addedToParent();
+
+ if(parent is Card)
+ {
+ var parentCard:Card = parent as Card;
+ parentCard.gap = 0;
+ parentCard.removeClass("simple");
+ }
+ }
}
}