summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-08-29 01:59:04 -0700
committerStan Hu <stanhu@gmail.com>2015-08-29 02:05:37 -0700
commit1fdf56c95d82292a3050578fed3bb258abbc6e9c (patch)
tree2d7ea43c7f613cc6eb6e9f829557df2a32ba825c /lib/api/notes.rb
parenta429eb4d455cabde26c5cdf8a3b38e65966531dc (diff)
downloadgitlab-ce-1fdf56c95d82292a3050578fed3bb258abbc6e9c.tar.gz
Prevent anchors from being hidden by header upon a new page load.
Browsers change the scroll position after the page is loaded, and the current 1 ms delay wasn't long enough for the browser to jump to the anchor. Even then, it appears another 100ms delay is necessary to adjust the scroll properly: http://stackoverflow.com/questions/19057731/scrolltop-on-page-reload-doesnt-work-possible-script-conflict Add a little more of an offset to see a few lines before the anchor. Closes #1614 Closes #1024
Diffstat (limited to 'lib/api/notes.rb')
0 files changed, 0 insertions, 0 deletions