Virtual Keyboard toggle does not fire resize event on Visual Viewport on Windows |
|||||||||||
Issue descriptionChrome Version: 66.0.3350.0 OS: Windows 10 Touch What steps will reproduce the problem? (1) Open http://fiddle.jshell.net/nzLsLebg/2/show/light/ in tablet mode. (2) Tap the text box. What is the expected result? On screen keyboard should appear. A message like "i resized to ..." should also appear. What happens instead? On screen keyboard appears, but no message (viewport event not fired). This works fine on ChromeOS (66.0.3329.0).
,
Feb 20 2018
,
Feb 26 2018
The code is failing at [1], which seems to be old piece of Windows code for detecting whether the keyboard was shown or not. I don't know enough about this code to do anything with it, so cc'ing a bunch of people who might know? (sorry if you are no longer working on Chrome). [1] https://cs.chromium.org/chromium/src/ui/base/win/osk_display_manager.cc?dr&sq=package:chromium&l=193
,
Mar 6 2018
Hi Dave, I saw that you recently committed [1], where you mentioned that the current code only works for < Win 10 RS1? Perhaps your follow up patch using InputPane will fix this bug? I also did some investigation myself in [2] to find the root cause of the bug, but it sounds like the InputPanes thing is the correct fix? [1] https://chromium-review.googlesource.com/c/chromium/src/+/941911 [2] https://chromium-review.googlesource.com/c/chromium/src/+/925123
,
Mar 6 2018
,
May 22 2018
Hey dtapuska@, I think this bug will be fixed once 817501 is fixed, so do you mind if I just assign this to you? Thanks!
,
Jun 19 2018
,
Jun 22 2018
,
Jun 22 2018
,
Jul 4
shend@, I just tested this on ChromeOS 67 and it doesn't seem to send the resize events when VK shows up. Also tested with Edge on latest Windows 10 (v1803) and it doesn't seem to send the resize event either. Note that both Chrome and Edge do scroll the text boxes into the view if they were blocked by appearing the VK.
,
Jul 4
Interesting...I just tested it on Chrome 69 and it seems to work fine. I just put:
monitorEvents(window.visualViewport, 'resize')
into devtools. Then showing/hiding the VK triggers the event as expected.
,
Jul 10
Fair enough. I just tested with 69 on ChromeOS as well as Win 10 and in both cases it does send the resize events. Can you confirm this on your end too?
,
Jul 10
Hmm it doesn't seem to work on my Surface Pro with Chrome Canary, but could that be because I have an older version of Windows? P.S. I don't know why, but the original test case in http://fiddle.jshell.net/nzLsLebg/2/show/light/ no longer works. I suspect it's because jsfiddle does weird things with frames or something.
,
Jul 11
I have tested on Win 10 Pro 1803.
,
Jul 12
Ah, I only have Win 10 Pro 1709. Let me update the machine and I'll close this bug if it's fixed.
,
Jul 12
Confirmed fixed on Win 10 Pro 1803. |
|||||||||||
►
Sign in to add a comment |
|||||||||||
Comment 1 by shend@chromium.org
, Feb 19 2018