From 6fe086a2bb60cb178b35e41e48e395fda994633d Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Tue, 13 Dec 2016 12:51:17 -0800 Subject: [PATCH] Fixing issue with side options losing event handlers when re-opened. Also enlarging minimum story height to accomodate new email story side option. --- media/css/reader.css | 5 ++++- media/js/newsblur/views/story_title_view.js | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/media/css/reader.css b/media/css/reader.css index e09dd3250..4b909f1f5 100644 --- a/media/css/reader.css +++ b/media/css/reader.css @@ -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; diff --git a/media/js/newsblur/views/story_title_view.js b/media/js/newsblur/views/story_title_view.js index b7dbc6831..f53ffbd60 100644 --- a/media/js/newsblur/views/story_title_view.js +++ b/media/js/newsblur/views/story_title_view.js @@ -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); } },