fix incorrect scroll after click on Reply in profile modal window

This commit is contained in:
Denis Ryabov 2014-04-07 00:33:39 +04:00
parent 9bb2edea97
commit 74dd1d0308
4 changed files with 7 additions and 2 deletions

View File

@ -354,7 +354,7 @@ button.follow:hover {
font: 18px/40px 'Open Sans Condensed', sans-serif; font: 18px/40px 'Open Sans Condensed', sans-serif;
padding-left: 10px; padding-left: 10px;
} }
.profile-modal .postboard-posts .profile-modal .postboard-posts-wrapper
{ {
position: absolute; position: absolute;
top: 0; top: 0;

View File

@ -363,8 +363,10 @@
<button class="postboard-news" style="display:none;"></button> <button class="postboard-news" style="display:none;"></button>
</h2> </h2>
<div class="postboard-posts-wrapper">
<ol id="profile-posts" class="postboard-posts"> <ol id="profile-posts" class="postboard-posts">
</ol> </ol>
</div>
</div> </div>
<!-- ÁREA DE POSTS END --> <!-- ÁREA DE POSTS END -->

View File

@ -481,8 +481,11 @@
<button class="postboard-news" style="display:none;"></button> <button class="postboard-news" style="display:none;"></button>
</h2> </h2>
<div id="separator"></div> <div id="separator"></div>
<div class="postboard-posts-wrapper">
<ol id="profile-posts" class="postboard-posts"> <ol id="profile-posts" class="postboard-posts">
</ol> </ol>
</div>
</div> </div>
<!-- ÁREA DE POSTS END --> <!-- ÁREA DE POSTS END -->

View File

@ -126,7 +126,7 @@ function openProfileModal(e)
$mc.on('profileloaded', function() { $mc.on('profileloaded', function() {
var viewHeader = $mc.find(".postboard > h2"); var viewHeader = $mc.find(".postboard > h2");
var h = viewHeader.offset().top + viewHeader.outerHeight() - $mc.parent().offset().top + 5; 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'); $mc.trigger('profileloaded');
} }