Explorar el Código

Fix défilement articles dépliés en vue globale

Marien Fressinaud hace 12 años
padre
commit
a09dc8a7c0
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      app/views/javascript/main.phtml

+ 4 - 0
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 ();
 	}