WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
198737
The whole viewport shifts down when calling focus() on a contenteditable which may be focused natively
https://bugs.webkit.org/show_bug.cgi?id=198737
Summary
The whole viewport shifts down when calling focus() on a contenteditable whic...
Xidorn Quan
Reported
2019-06-10 17:59:46 PDT
Created
attachment 371800
[details]
testcase Steps to reproduce: 1. open the testcase on iPhone 2. click the rectangle on the bottom Expected result: The viewport should shift up and put the rectangle input in the view Actual result: The viewport briefly shifts down a lot, and then shifts back, but at the end, the rectangle is out of view. Based on experiment with Simulator, it seems to be significant when software keyboard is triggered. If you use Simulator, and enable "Slow Animations" in Debug menu, you would see that the whole viewport shifts down a lot and slowly moves up. I tested on a real iOS 12 device as well as Simulator.
Attachments
testcase
(532 bytes, text/html)
2019-06-10 17:59 PDT
,
Xidorn Quan
no flags
Details
screencast
(233.77 KB, video/mp4)
2019-06-10 19:53 PDT
,
Xidorn Quan
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Xidorn Quan
Comment 1
2019-06-10 18:15:01 PDT
It seems to also happen when the contenteditable is newly created and a focus() follows closely. In this case, if you don't call focus() the new input wouldn't be focused natively.
Xidorn Quan
Comment 2
2019-06-10 19:53:56 PDT
Created
attachment 371813
[details]
screencast FWIW, this is what happens (with slow animations enabled) in our production.
Radar WebKit Bug Importer
Comment 3
2019-06-11 00:57:36 PDT
<
rdar://problem/51614063
>
Wenson Hsieh
Comment 4
2019-06-11 07:25:47 PDT
This doesn’t appear to reproduce anymore on iOS 13.
Ryosuke Niwa
Comment 5
2019-06-25 13:28:26 PDT
Xidorn, please verify that this is fixed in iOS 13 betas, and reopen the bug if you still the issue.
Xidorn Quan
Comment 6
2019-06-26 17:25:30 PDT
Yep, it doesn't seem to happen anymore on iOS 13 beta. Thanks.
Ryosuke Niwa
Comment 7
2019-06-26 19:04:45 PDT
(In reply to Xidorn Quan from
comment #6
)
> Yep, it doesn't seem to happen anymore on iOS 13 beta. Thanks.
Great. Thanks for verifying!
Xidorn Quan
Comment 8
2019-07-10 16:38:44 PDT
Submitted a new
bug 199691
which is probably one of the root cause of this bug, and it happens on iOS 13 beta as well.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug