Hi Alexandra,
How do I set the percent height or width for the layout component?
I have done it as below:
rows: [
{height:“50%”},{height:“25%”},{height:“25%”}
]
However, it doesn’t work as expected.
please help me, thanks a lot.
Hi Alexandra,
How do I set the percent height or width for the layout component?
I have done it as below:
rows: [
{height:“50%”},{height:“25%”},{height:“25%”}
]
However, it doesn’t work as expected.
please help me, thanks a lot.
Hi,
you can use “gravity” property (1 is default value). Here is how you can use it instead of percents:
rows: [
{gravity: 2},{},{}
]
or
rows: [
{gravity: 2},{gravity: 1},{gravity: 1}
]
Hi Alexandra,
Oh, yes, it works! :laughing:
Thank you very very much.