Is there a way to change the height of a custom element based on a dynamic variable?
I have a custom element that displays several checkboxes, however the number of checkboxes displayed is based on the result of a user input.
e.g. if the user inputs 2 only 2 checkboxes appear but if the user inputs 20, 20 checkboxes will appear.
At the moment if only 2 checkboxes are displayed I have a big area of white space under them, this is where the other checkboxes would be rendered if they were needed.
@bakieness custom elements only work on sites that are connected to your own domain. I guess you haven’t connected the example template to your domain.
@bakieness It should be (unless you add some code to limit its height). I created a table of 100 rows using custom element and didn’t have any issue with the height.
I amfacing the same issue as I resize I get variable width but height remains same,
How can I make height 100%;? #comp-lzouyrg8_r_comp-lzoub8ua {
–custom-element-width: 100%;
–custom-element-height: auto;
display: var(–display);
–display: flex;
}