Browse Source

Merge pull request #34 from dryabov/master

fix incorrect scroll after click on Reply in profile modal window
master
Hedgehog 11 years ago
parent
commit
0deeb0f668
  1. 2
      css/profile.css
  2. 2
      following.html
  3. 3
      home.html
  4. 2
      js/interface_common.js

2
css/profile.css

@ -354,7 +354,7 @@ button.follow:hover { @@ -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;

2
following.html

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

3
home.html

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

2
js/interface_common.js

@ -126,7 +126,7 @@ function openProfileModal(e) @@ -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');
}

Loading…
Cancel
Save