Bug 46165 - Editor in lower area of the screen is unusable with multiple lines of text
Summary: Editor in lower area of the screen is unusable with multiple lines of text
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-10-28 21:12 UTC by Philipp Sumi
Modified: 2017-08-31 08:41 UTC (History)
3 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:


Attachments
1: Open editor with multiline text. So far so good. (29.18 KB, image/png)
2016-10-28 21:12 UTC, Philipp Sumi
Details
2: After clicking on 1st line, the rest of the text is out of reach. (14.55 KB, image/png)
2016-10-28 21:13 UTC, Philipp Sumi
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 46165 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Philipp Sumi 2016-10-28 21:12:43 UTC
Created attachment 18264 [details]
1: Open editor with multiline text. So far so good.

Editing multi-line text with the Editor control is completely broken in XF. There are many issues, also with regards to just expanding while text is entered, but the most obvious one is this:

Screenshots:
1: Opening the editor with multiline text. I'm doing a dirty hack to position the caret at the end of the text.
2: After clicking on the first line. I can't scroll down from there anymore. The user experience is completely broken at this point.
Comment 1 Philipp Sumi 2016-10-28 21:13:17 UTC
Created attachment 18265 [details]
2: After clicking on 1st line, the rest of the text is out of reach.
Comment 2 adrianknight89 2016-10-30 06:06:12 UTC
Did you try running in AdjustResize mode?
Comment 3 Philipp Sumi 2016-10-30 14:49:03 UTC
Just tried AdjustResize - same behavior.
Comment 4 adrianknight89 2016-10-31 05:28:07 UTC
You should attach a repro. I tried to reproduce this in AppCompat + AdjustResize but failed to do so.
Comment 5 Philipp Sumi 2016-11-02 09:27:45 UTC
Here's a minimal repro of the case:


<?xml version="1.0" encoding="utf-8"?>

<ContentPage ... >

    <ScrollView>
        <StackLayout Padding="0">

          <Button HeightRequest="200" />
          <Button HeightRequest="200" />
          <Button HeightRequest="200" />
          <Button HeightRequest="200" />
          <Button HeightRequest="200" />
          
          <Editor Text="{Binding RideDescription}" HeightRequest="140" />

        </StackLayout>
    </ScrollView>
</ContentPage>
Comment 6 adrianknight89 2016-11-03 03:29:07 UTC
You should comment on https://github.com/xamarin/Xamarin.Forms/pull/422 so that it gets merged sooner.

I tested your repro. The editor does not scroll in AdjustPan, but if you switch to AdjustResize (in latest master) it works.

Add this before setting MainPage:

Xamarin.Forms.PlatformConfiguration.AndroidSpecific.Application.UseWindowSoftInputModeAdjust(Application.Current.On<Android>(), WindowSoftInputModeAdjust.Resize);

2.3.3-pre3 does not work, but master does. So I expect this issue to be resolved in an upcoming release.

At the moment, there is nothing you can do except for waiting.
Comment 7 Paul DiPietro [MSFT] 2017-03-19 22:38:13 UTC
Appears to still be occurring as far as I can see as of 2.3.5.71-nightly.
Comment 8 Philipp Sumi 2017-03-20 00:40:35 UTC
Suggestion: You really should try some dog fooding and build a simple chat UI without cutting corners (such as putting the text input on top).

This has been a subject so often in the forums, because it's nearly impossible to get something that basic done in XF. You would think this can be done in less than two hours, but I literally spent weeks trying to get the chat part of my app usable, and it still feels clunky, despite a myriad of super dirty hacks in place.
Comment 9 Philipp Sumi 2017-08-31 08:41:05 UTC
Any word on this one?