OSDN Git Service

fix sidebar autoscroll when the selected doc is not visible.
authorScott Main <smain@google.com>
Wed, 31 Jul 2013 01:00:51 +0000 (18:00 -0700)
committerScott Main <smain@google.com>
Wed, 31 Jul 2013 01:00:51 +0000 (18:00 -0700)
commitbc72957e927d5cbe5ee2f4d326d75a8bd88c3b14
tree81292ac2291fa5bd6eac8212479b3591aa831c98
parent3c1da3e2c966a607bf74bda5151013c5ac324f80
fix sidebar autoscroll when the selected doc is not visible.
bug: 9676913

This was not working for third generation list items. Switching
the position measurement to be relative to the entire page rather than
the parent container fixes it. I then added 125px to account for
the site header and set the threshold and placement of scrolled items
to be at 80% the nav height.

Change-Id: Idda1896d11069e56325ba830ed745dae9e0fc483
tools/droiddoc/templates-sdk/assets/js/docs.js