diff options
author | Luke Bacon <luke@equivalentideas.com> | 2015-04-02 17:33:21 +1100 |
---|---|---|
committer | Luke Bacon <luke@equivalentideas.com> | 2015-04-02 17:42:01 +1100 |
commit | a6dfacacd7f1a930f56d876e502c8ab11b813181 (patch) | |
tree | 904647d34195034b4c363425d4ec18d76e63e7e6 /script/annotate-models | |
parent | 61225158aabba94a19bae14039ddfd32ee0216c3 (diff) |
select text after the box is positioned
Some devices (IOS) jump the screen to
the position of a form input when it is selected.
This causes the screen to scroll to the bottom
of the page when the 'link to this' icon is clicked,
because the browser scrolls before the box is positioned
on screen.
This commit changes the order of steps in
script for the 'link to this' widget, so that the
input is selected *after* the box is positioned.
This stops the broswer from jumping
to the bottom of the page.
Tested in Chrome, Safari and IOS simulator on Mac OSX.
Fixes #2264
https://github.com/mysociety/alaveteli/issues/2264
Diffstat (limited to 'script/annotate-models')
0 files changed, 0 insertions, 0 deletions