From c7175f5f439a5bafe2dabec91f049c016e4b5958 Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Wed, 3 Oct 2012 18:15:02 -0400 Subject: [PATCH] Delete code that repositioned window on last message. I believe we'll get this for free with the new version of select_zephyr and our bottom_whitespace div. (imported from commit 0d6c3e4d0a70e06b9b2f6e5830b3a9650e44441a) --- zephyr/static/js/hotkey.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/zephyr/static/js/hotkey.js b/zephyr/static/js/hotkey.js index a3c72573e9..5cf79ccde4 100644 --- a/zephyr/static/js/hotkey.js +++ b/zephyr/static/js/hotkey.js @@ -38,14 +38,6 @@ function process_hotkey(code) { if (next_zephyr.length !== 0) { select_zephyr(next_zephyr, true); } - if ((next_zephyr.length === 0) && (code === 40)) { - // At the last zephyr, scroll to the bottom so we have - // lots of nice whitespace for new zephyrs coming in. - // - // FIXME: this doesn't work for End because get_last_visible() - // always returns a zephyr. - $("#main_div").scrollTop($("#main_div").prop("scrollHeight")); - } return process_hotkey; }