Bug 59246 - Focus Editor in ListView causes toolbar pushed from screen with WindowSoftInputModeAdjust.Resize
Summary: Focus Editor in ListView causes toolbar pushed from screen with WindowSoftInp...
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.4.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-09-06 06:32 UTC by Anton
Modified: 2017-09-08 20:21 UTC (History)
4 users (show)

Tags: ac android softinputmode editor viewcell keyboard
Is this bug a regression?: ---
Last known good build:


Attachments
Reproduction project for Editor inside ListView Cell issue (53.18 KB, application/zip)
2017-09-06 06:35 UTC, Anton
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 59246 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 Anton 2017-09-06 06:32:45 UTC

    
Comment 1 Anton 2017-09-06 06:35:28 UTC
Created attachment 24586 [details]
Reproduction project for Editor inside ListView Cell issue

Sample project description:
1. You have ListView with Editor controls in ViewCells.
2. Focus Editor, keyboard appears and layout pushed to top, even toolbar. That happens with WindowSoftInputModeAdjust.Resize. Just Editor control, not nested in ListView, not pushes toolbar from screen since it was already fixed.
Is that expected behavior for such control combination or some bug?
Experiences such behavior on XF 2.3.4, 2.3.5, 2.4 pre-2. 

Steps to reproduce:
1. Run app
2. There is ListView with Editor in ViewCells. Focus any cell at the bottom of the page.
3. Layout pushed to top with toolbar even if WindowSoftInputModeAdjust.Resize set.
Comment 2 Jimmy [MSFT] 2017-09-08 20:21:54 UTC
I am able to reproduce this with the attached repro project on Forms 2.4.0-pre2 so I will confirm this issue. This may be due to this line of code which appears to explicitly set the SoftInputMode to AdjustPan when an Entry/Editor is inside a ViewCell: https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.Android/ViewRenderer.cs#L57