Permalink
Browse files

keep the feed visible when returning from fullscreen to the menu

  • Loading branch information...
1 parent 7086a69 commit 4fc392cac23bb547d1af18dd4b2b99d215329d9e @raycohen raycohen committed Jan 30, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 emberjs-app/public/javascripts/views/video_item_view.js
View
7 emberjs-app/public/javascripts/views/video_item_view.js
@@ -19,7 +19,12 @@ App.VideoItemView = Ember.View.extend(App.DPadHandlers, {
this.set('selected', true);
App.setSelected(this);
- this.scrollIntoView();
+ this.scrollIntoView();
+
+ // Make sure the FeedView that would be picked if we click left from this
+ // item is visible.
+ var feedView = App.get('feedCollectionView').lastSelectedView();
+ feedView.scrollIntoView();
},
deselect: function() {

0 comments on commit 4fc392c

Please sign in to comment.