#16548 closed defect (fixed)
Dialog: fields scroll out of view when virtual keyboard pops up (mobile devices)
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.7.5 |
Component: | Dijit | Version: | 1.0 |
Keywords: | Cc: | Adrian Vasiliu, cjolif, Douglas Hays | |
Blocked By: | Blocking: |
Description
Load dijit/tests/mobile.html on iOS6, click the "Dialog" button, and touch (to focus) one of the last few fields. As the keyboard pops up, the is no longer visible.
I think this worked in iOS5 but I don't have a version to check against anymore.
See also #16202, although that says it happens when you type the first character, whereas this problem happens before typing anything.
Change History (6)
comment:1 Changed 8 years ago by
Cc: | Adrian Vasiliu cjolif Douglas Hays added |
---|---|
Milestone: | tbd → 1.8.4 |
Status: | new → assigned |
comment:4 Changed 8 years ago by
Summary: | Dialog: fields scroll out of view on focus (iOS6) → Dialog: fields scroll out of view on focus (mobile devices) |
---|
comment:6 Changed 8 years ago by
Milestone: | 1.8.4 → 1.7.5 |
---|---|
Summary: | Dialog: fields scroll out of view on focus (mobile devices) → Dialog: fields scroll out of view when virtual keyboard pops up (mobile devices) |
Version: | 1.8.3 → 1.0 |
Note: See
TracTickets for help on using
tickets.
When the keyboard pops up it's generating both a scroll event, caught by Dialog.js, and a viewport resize event, caught by _ContentpaneResizeMixin.js. Both of those events cause the Dialog to try to recenter itself, causing the problem.
A workaround is for existing apps is: