From 74dd1d0308302a6b73031cf7188aafc9021ea763 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Mon, 7 Apr 2014 00:33:39 +0400 Subject: [PATCH] fix incorrect scroll after click on Reply in profile modal window --- css/profile.css | 2 +- following.html | 2 ++ home.html | 3 +++ js/interface_common.js | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/css/profile.css b/css/profile.css index bd5ea8e..8416c81 100644 --- a/css/profile.css +++ b/css/profile.css @@ -354,7 +354,7 @@ button.follow:hover { font: 18px/40px 'Open Sans Condensed', sans-serif; padding-left: 10px; } -.profile-modal .postboard-posts +.profile-modal .postboard-posts-wrapper { position: absolute; top: 0; diff --git a/following.html b/following.html index 887957f..5ffb435 100644 --- a/following.html +++ b/following.html @@ -363,8 +363,10 @@ +
+
diff --git a/home.html b/home.html index 3393060..b3f3e66 100644 --- a/home.html +++ b/home.html @@ -481,8 +481,11 @@
+ +
+
diff --git a/js/interface_common.js b/js/interface_common.js index 8d326e5..a243eb4 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -126,7 +126,7 @@ function openProfileModal(e) $mc.on('profileloaded', function() { var viewHeader = $mc.find(".postboard > h2"); var h = viewHeader.offset().top + viewHeader.outerHeight() - $mc.parent().offset().top + 5; - $mc.find(".postboard-posts").css('border-top', parseInt(h, 10) + "px solid transparent"); + $mc.find(".postboard-posts-wrapper").css('border-top', parseInt(h, 10) + "px solid transparent"); }); $mc.trigger('profileloaded'); }