• Robert Knight's avatar
    Fix scrolling to new annotations · 09086090
    Robert Knight authored
    Since #306 which set the height of the `<hypothesis-app>` container
    element to 100%, the height of `document.body` is now equal to the
    window's `innerHeight`. As a result, `document.body.clientHeight` now
    returns the same value as `window.innerHeight` and `scrollOffset()`
    returns 0.
    
    Fix this by using `scrollHeight` instead of `clientHeight`, which takes
    into account the height of all of the body's descendant elements,
    including the `<thread-list>`.
    
    This calculation would still return the wrong result if the
    `<thread-list>` were ever placed in a separate scrolling container
    within the sidebar app window, but that is an acceptible limitation for
    now.
    09086090
Name
Last commit
Last update
..
components Loading commit data...
directive Loading commit data...
filter Loading commit data...
reducers Loading commit data...
templates Loading commit data...
test Loading commit data...
util Loading commit data...
vendor Loading commit data...
analytics.js Loading commit data...
annotation-mapper.js Loading commit data...
annotation-metadata.js Loading commit data...
annotation-ui.js Loading commit data...
annotation-viewer-controller.js Loading commit data...
app-controller.js Loading commit data...
app.js Loading commit data...
auth.js Loading commit data...
build-thread.js Loading commit data...
date-util.js Loading commit data...
drafts.js Loading commit data...
events.js Loading commit data...
features.js Loading commit data...
flash.coffee Loading commit data...
form-respond.coffee Loading commit data...
frame-sync.js Loading commit data...
ga.js Loading commit data...
groups.js Loading commit data...
host-config.js Loading commit data...
host.coffee Loading commit data...
live-reload-client.js Loading commit data...
local-storage.coffee Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
oauth-auth.js Loading commit data...
permissions.coffee Loading commit data...
query-parser.coffee Loading commit data...
raven.js Loading commit data...
render-markdown.js Loading commit data...
retry-util.js Loading commit data...
root-thread.js Loading commit data...
search-client.js Loading commit data...
search-filter.coffee Loading commit data...
service-config.js Loading commit data...
service-url.js Loading commit data...
session.js Loading commit data...
store.js Loading commit data...
stream-filter.coffee Loading commit data...
streamer.js Loading commit data...
tabs.js Loading commit data...
tags.coffee Loading commit data...
time.js Loading commit data...
ui-constants.js Loading commit data...
unicode.coffee Loading commit data...
view-filter.coffee Loading commit data...
virtual-thread-list.js Loading commit data...
websocket.js Loading commit data...