OSDN Git Service

fix two bugs in site script.
authorScott Main <smain@google.com>
Thu, 15 Aug 2013 19:22:28 +0000 (12:22 -0700)
committerScott Main <smain@google.com>
Thu, 15 Aug 2013 19:22:28 +0000 (12:22 -0700)
commit52dd206715e9d8e80a22c7106ec783324d51e747
tree89521aa33b1959ee999a899eb88383a7bd444781
parent3b90aff04cf7ef434baf47b3eb4c73a7ecad8764
fix two bugs in site script.
1. Fix URL path check for reference docs to initalize api level and sidenav.
Previously, this condition was never true, so the sidenav would not be initialized
under default conditions and the reference drag bar would not appear.
2. Fix the recent change to the 'scroll into view' script so that it works
properly in a multi-pane sidenav (reference docs) by again making the offset
measurement relative to the parent container (but much better than was done before).

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