I’m moving from Editor X to Wix Studio, and I’m having trouble getting Studio to size elements the way I want. Here’s one example, greatly simplified to illustrate a specific problem.
In my simplified example, I have a section that contains nothing but a block of text. The section has padding of 25 pixels (absolute pixels, not variable) on all sides. The text is docked to the left and top and is set to ‘wrap’. The section’s responsive behavior is set to ‘fixed’.
The section height is sized so that it basically hugs the text block.
When I stretch the viewport on desktop, the text wraps, using fewer lines and therefore less space. I want the section to shrink so it continues to hug the text block. It doesn’t.
What I want is a max-content behavior for the section with a minimum height of some very small number. Studio allows me to enter a minimum height that is smaller than the height of the text block, but it ignores that value and instead uses the actual height of the text block in the current editor viewport (1280).
I found a way to beat it, which is to temporarily set my desktop edit viewport to 2500, drag the section height to hug the text at that viewport, and then return to my standard edit viewport size. With that workaround, Studio recognizes the minimum height that I set on the expanded canvas, even though it ignores the minimum height I set in the inspector earlier.
Am I missing something? I’m thinking that this may not be intended behavior, since I can get the correct result by ‘tricking’ the editor, but it ignores a value that I enter manually.