New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide an option to auto-size height without affecting existing width #2732
Comments
I have this need also, it would make text handling easier and more efficient. Not an uncommon need, see for example here on stackexchange webapps or stackoverflow. |
We'll add a fixedWidth property in the next release. |
@alderg: Playing aroun with fixedwidth and autosize, I noticed that (a) calculations seem to become a bit off when I set spacing/margins for the text and (b) when editing from empty (no text), it will briefly first let the text pan out, causing the view to shift sideways, and then calculate based on width and expand downwards. Here is (b) behavior visually: |
We're unable to reproduce this. Which browser and OS is this, and what are the steps to reproduce this? |
Hi @alderg! Repro was quite simple, here are the steps (you can follow along visually in the animated gif screenrecording above):
The result, as described in my previous message, is in the screenrecording visible above. This is using windows 10 and chrome. I have not tested extensively, used any other browsers, etc. It happened consistently on Friday: |
Thanks for the report. This will be fixed in the next release. |
Is your feature request related to a problem? Please describe.
I frequently have text containers with at least a paragraph of text. I can't use autosize on these because it widens the box until the text fills the minimum height possible. In other words, autosize is prioritising width over height.
Describe the solution you'd like
I have two solutions I'd like to see. Either would be fine, but both would be ideal, as they would fit different scenarios.
Describe alternatives you've considered
There are no alternatives, other than manually resizing containers after editing their content.
Additional context
The following screenshot shows the use of a list and a free-floating text box. All items in the list have been manually sized to fit their content. The floating text box has not yet been manually sized (I created this issue first).
The text was updated successfully, but these errors were encountered: