diff options
| author | 2014-04-06 16:20:10 +0200 | |
|---|---|---|
| committer | 2014-04-06 16:20:10 +0200 | |
| commit | 40df0eb4524546f4e0561b4b6548dffa4b987299 (patch) | |
| tree | 59039f46c3e5d6e45c79b647973e3b18183a67fe /p | |
| parent | b5e60062a528f6ace5c67f280443819470e0225a (diff) | |
UI: Align article one entry lower
https://github.com/marienfressinaud/FreshRSS/issues/470
Diffstat (limited to 'p')
| -rw-r--r-- | p/scripts/main.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 818d459b3..03870da25 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -236,14 +236,11 @@ function toggleContent(new_active, old_active) { relative_move = true; } - var new_pos = new_active.position().top, - old_scroll = $(box_to_move).scrollTop(); if (sticky_post) { - if (hide_posts) { - - new_pos = new_active.position().top; + var new_pos = new_active.position().top - new_active.children('.flux_header').outerHeight(), old_scroll = $(box_to_move).scrollTop(); + if (hide_posts) { if (relative_move) { new_pos += old_scroll; } |
