CustomElement inside Wix is not stretching all the way to Parents Height

Question:
How to change custom element Height to fit to the widget container?

Product:
Wix Editor/Velo/Custom Element

What are you trying to achieve:
I have added a custom element, how can I resize its height to fit to widget height when resized. However am able to get its width adjust but height seems same that set in Wix Block editor

What have you already tried:

  1. I added custom element inside a Container/Flex .
  2. Tried Height to auto/100%, 1fr none worked
  3. However same setting to width works as expected

Additional information:
I see the enclosing component around inframe

I see the class set on enclosing div, is setting height to auto instead of 100%


#comp-lzouyrg8_r_comp-lzoub8ua {
    --custom-element-width: 100%;
    --custom-element-height: auto;
    display: var(--display);
    --display: flex;
}