This topic is for Bubble developers team … @emmanuel
When you setting an element with “this element can fit width to content” and “this element can fit height to content”…
-
In the editor (the element preview), the instance.canvas dom element is set almost to a width of 300px and not to the content width.
-
When you lock width of the element, the preview iframe get in an infinite loop that try to adapt height to the content.
-
When you lock height, the preview iframe get in an infinite loop trying to adapt width to the content
-
Every choose don’t has any effect to the output (this can be solved width opportune code workaround by myself).
TEST SETUP:
I have append a div with static dimensions (a content) inside the canvas element.
With settings below I got the height infinite loop
With settings below I got the width infinite loop
In every cases width is ever 300px minimum and there is not effect in output (the result page).
I’m waiting for a quick fix. Thank you.