Fixing margins on story truncation.

This commit is contained in:
Samuel Clay 2013-02-12 12:18:32 -08:00
parent 7b29e798df
commit fd7df41d4f
2 changed files with 3 additions and 2 deletions

View file

@ -2286,13 +2286,14 @@ background: transparent;
max-height: none;
}
.NB-feed-story .NB-story-content-wrapper {
margin: 0 236px 0 28px;
margin: 0 236px 28px 28px;
}
.NB-feed-story-view-narrow .NB-feed-story .NB-story-content-wrapper {
margin-right: 28px;
}
.NB-story-content-wrapper.NB-story-content-wrapper-height-truncated {
max-height: 460px;
margin-bottom: 0;
overflow: hidden;
}
.NB-story-content-wrapper.NB-story-content-wrapper-height-fudged {

View file

@ -384,7 +384,6 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
var height_ratio = content_height / max_height;
if (content_height < max_height) return;
// $wrapper.removeClass('NB-story-content-wrapper-height-truncated');
// console.log(["max height", max_height, content_height, content_height / max_height]);
this._fetch_interval = setInterval(function() {
NEWSBLUR.app.story_list.fetch_story_locations_in_feed_view();
@ -398,6 +397,7 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
complete: _.bind(function() {
clearInterval(this._fetch_interval);
NEWSBLUR.app.story_list.fetch_story_locations_in_feed_view();
$wrapper.removeClass('NB-story-content-wrapper-height-truncated');
}, this)
});