aboutsummaryrefslogtreecommitdiff
path: root/app/views/javascript/main.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/javascript/main.phtml')
-rw-r--r--app/views/javascript/main.phtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml
index 8ff3ec54b..37da448d2 100644
--- a/app/views/javascript/main.phtml
+++ b/app/views/javascript/main.phtml
@@ -54,6 +54,9 @@ function toggleContent (new_active, old_active) {
if (hide_posts) {
old_active.children (".flux_content").toggle (0);
+ new_pos = new_active.position ().top;
+ old_scroll = $(box_to_move).scrollTop ();
+
if(relative_move) {
new_pos += old_scroll;
}