Xamarin.forms: Editor with AutoSize should have an initial Height

Created on 12 Jan 2019  Â·  4Comments  Â·  Source: xamarin/Xamarin.Forms

Summary

The Editor now has an AutoSize property. This would typically be used in a scenario where the user is expected to enter more than one line of text, .

Intended Use Case

When the AutoSize property is enabled it is desirable to set the initial size of the edit control to imply to the user that they can enter more than one line of text.

API Changes

There should either be a minimum height property, or the existing Height property could be considered to be the minimum.

4 high impact proposal-open enhancement âž•

Most helpful comment

I agree with @Aculeo, I think the properties MinimumHeightRequest and AutoSize should work together.

All 4 comments

I also found it rather confusing that setting HeightRequest disables auto sizing entirely. And much to my surprise MinimumHeightRequest didn't do what I expected either. I hope this will get addressed.

I agree with @Aculeo, I think the properties MinimumHeightRequest and AutoSize should work together.

I think this feature should be available.. a minimum height request is able to set for the control and editor should resize as text inside increases.. otherwise, i dont see much difference between an editor and an entry

What about MaximumHeight? Maybe I want to show max. 5 lines and let the user scroll if there is too much text so that the Editor does not break the layout.

Was this page helpful?
0 / 5 - 0 ratings