Fixing issue with side options losing event handlers when re-opened. Also enlarging minimum story height to accomodate new email story side option.

This commit is contained in:
Samuel Clay 2016-12-13 12:51:17 -08:00
parent a448ffb735
commit 6fe086a2bb
2 changed files with 6 additions and 2 deletions

View file

@ -3170,7 +3170,10 @@ body {
.NB-story-content-container {
overflow: hidden;
position: relative;
min-height: 144px;
min-height: 192px;
}
.NB-narrow-content .NB-story-content-container {
min-height: 108px;
}
.NB-story-content-wrapper {
position: relative;

View file

@ -131,7 +131,7 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
'),
render_inline_story_detail: function(temporary_text) {
// console.log(['render_inline_story_detail', temporary_text]);
// console.log(['render_inline_story_detail', temporary_text, this.story_detail]);
if (NEWSBLUR.reader.story_view == 'text' || temporary_text) {
if (!this.text_view) {
this.text_view = new NEWSBLUR.Views.TextTabView({
@ -155,6 +155,7 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
// console.log(['render_inline_story_detail', this.$(".NB-story-detail")]);
this.$(".NB-story-detail").html(this.story_detail.$el);
this.story_detail.attach_handlers();
this.story_detail.setElement(this.story_detail.$el);
}
},