From a09dc8a7c0e2292d09b50ad5c97044565e497ce2 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 7 Oct 2013 21:50:49 +0200 Subject: Fix défilement articles dépliés en vue globale MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/javascript/main.phtml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/views/javascript') diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index 37da448d2..03c60cc52 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -67,6 +67,10 @@ function toggleContent (new_active, old_active) { }); } } else { + if(relative_move) { + new_pos += old_scroll; + } + new_scroll = $(box_to_move).scrollTop (new_pos).scrollTop (); } -- cgit v1.2.3