diff options
author | Andrew Dolgov <[email protected]> | 2006-02-25 07:15:05 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-02-25 07:15:05 +0100 |
commit | e0a7121ba9b0f73b9a9b4a61c4f525fb02331ead (patch) | |
tree | 9971b8fabe50b4e36e10780de4459e1c698d922c /viewfeed.js | |
parent | 646e601e71b85b6dff3104eaec05cc5ea290c1d0 (diff) |
only enable bottom actions toolbar in headlines, when headlines list scrolls
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/viewfeed.js b/viewfeed.js index 83a348853..1f0d4d283 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -385,4 +385,13 @@ function init() { if (arguments.callee.done) return; arguments.callee.done = true; document.onkeydown = hotkey_handler; + + var hw = document.getElementById("headlinesList").scrollHeight; + var pw = parent.document.getElementById("headlines").scrollHeight; + + if (hw >= pw) { + var bt = document.getElementById("headlineActionsBottom"); + bt.className = "headlinesSubToolbar"; + } + } |