Text And Button Auto Sizing

I’m no sure this is a bug or is just not supported, but it seems we can set a text (or button) width as “Auto” in the right panel in Editor X, but this property velue is never persisted…
I mean, as soon a I select another element and get back to my Text/button element, the with property is back to the previous value, and the “Auto” value is lost…
We can only set an absolute value like a number of pixels or a percentage.
But I just would like the width of my text/button being adjusted from its content (like containers for example)
If this is a bug, I will just wait for it to be fixed :slight_smile:
In the other case I think it would be very nice to make this simple feature being supported.
When inspecting the page in Chrome Dev Tools, just changing the width property of div container does the job.
What is the status of that feature ?
Thanks a lot for your attention.

Hi,

Thank you for reporting the experience.

It appears that this is a bug, ‘auto’ width should not be offered when we have height set to ‘auto’ as well.

Is there a particular reason you are looking to set the width to auto?
What responsive behaviour were you looking for?

We are more than happy to help.

Hi,
Thanks for your response.
One of the main reason would be to make my buttons having a standard padding and being adjusted depending on it’s label, which might depend on the current langage. This would avoid having one big button containing a small label in english just to be able to contain the same label in German…
I’m not sure to make my site multi-langage, but another reason would be my a “region” tag cloud I’m currently displaying to filter some destinations.
I’m currently using some buttons in a repeater, but I would like the width of my button being adjusted to the region label it contains. Just to avoid having a very wide button containing a region with a very small label.
It would make the layout more dynamic I think…
Best Regards,
David

Second this, would love to set a px padding for all buttons outside of the text. It helps keep the button structure consistent throughout the website.

Thank you guys for that comments. We will have this in mind for when we make improvements on the button.