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/03/17 16:56:55 UTC

[royale-asjs] branch develop updated: jewel-card: set defaults so Royale knows CSS default config of 100% w and h

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 a4b59c6  jewel-card: set defaults so Royale knows CSS default config of 100% w and h
a4b59c6 is described below

commit a4b59c6dee6bca192f6e0232087c5521c39418d6
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Tue Mar 17 17:56:44 2020 +0100

    jewel-card: set defaults so Royale knows CSS default config of 100% w and h
---
 .../projects/Jewel/src/main/royale/org/apache/royale/jewel/Card.as     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Card.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Card.as
index 3fcf61d..229ad59 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Card.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Card.as
@@ -49,6 +49,9 @@ package org.apache.royale.jewel
 			// Add basic card styles by default when use Card alone
 			// if Card composes CardPrimaryContent, then remove it for more complex structure and styles
 			className = "simple";
+
+			percentWidth = 100;
+			percentHeight = 100;
 		}
 	}
 }
\ No newline at end of file