xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] iOS, Android - Editors do not size correctly with other content inline #9870

Open matthewskillington opened 4 years ago

matthewskillington commented 4 years ago

Description

When an editor has to share the screen width with other content either side of it, for example other grid columns it doesn't seem to size itself correctly vertically to display all of the content within it

Edit: There seems to be a similar issue on android but you cant scroll up to see the start of the text rather than scroll down to see the bottom

Steps to Reproduce

  1. Use the reproduction link to fire up the app onto an iOS device
  2. Start the app and start typing into the editor

Expected Behavior

After 3 or 4 lines you will notice the editor doesn't grow vertically enough to display its content

Actual Behavior

The editor should grow to show all of the content within it

Basic Information

Screenshots

image image

Reproduction Link

AutoSizeBugGrid.zip

Workaround

Using a custom control and overriding the OnMeasure and adjusting the width to account for any content either side of the editor

hartez commented 4 years ago

Yeah, the resizing tries to happen on both platforms, but it's all over the place. Sometimes the Editor resizes as you type more characters, sometimes it resizes to add part of a new line when you hit Enter.