Skip to content

Commit

Permalink
Fixed using a StackedView in StaticView raising an error (frame is null)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Campbell authored and Charles Jolley committed Nov 18, 2009
1 parent 1856229 commit edcf66d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frameworks/desktop/views/stacked.js
Expand Up @@ -39,6 +39,15 @@ SC.StackedView = SC.CollectionView.extend(
adjust the height of the view.
*/
layout: { top: 0, left: 0, right: 0, height: 1 },

/**
Return full range of its indexes for nowShowing
@returns {SC.IndexSet} full range of indexes
*/
computeNowShowing: function(rect) {
return this.get('allContentIndexes');
},

/**
Updates the height of the stacked view to reflect the current content of
Expand Down Expand Up @@ -98,4 +107,4 @@ SC.StackedView = SC.CollectionView.extend(
*/
didCreateLayer: function() { return this.updateHeight(); }

});
});

0 comments on commit edcf66d

Please sign in to comment.