Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Editor not sizing properly

$
0
0

I would like the Editor to autoSize and display the whole text. What happens now is when I display a large text in the editor (Lorem Ipsum....) the editor displays only 1 or 1 and a half line and I have to scroll inside the Editor. When I start editing and add a newline/enter, the Editor size jumps to the correct size displaying the whole text.

For iOS I have also tried creating a customRenderer (iOS) setting Control.ScrollEnabled = false; and Control.SizeToFit(); and that seems to work the first time but after editing a while, the Editor size jumps back to 1 line. tapping return on the keyboard the editor jumps back to full size. The AutoSize property does not seem do much either.

On Android it is a different story: the text is visible but it doesn't fit in the editor entirely, I have a feeling that the Editor height is calculated by multiplying the number if linbreaks, which results in the text never fitting the control because it does not wrap text.

Does anybody know how to solve this issue?

@Microsoft PS: I am unable to post a question in Chrome (on Mac) anymore? Buttons don't get disabled and the "Category does not exist message" does not display. It does work in Safari.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>