Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed using a StackedView in StaticView raising an error (frame is null)

  • Loading branch information...
commit edcf66df94134f479ddad658d95b27e94b685c2a 1 parent 1856229
Colin Campbell authored Charles Jolley committed
Showing with 10 additions and 1 deletion.
  1. +10 −1 frameworks/desktop/views/stacked.js
View
11 frameworks/desktop/views/stacked.js
@@ -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
@@ -98,4 +107,4 @@ SC.StackedView = SC.CollectionView.extend(
*/
didCreateLayer: function() { return this.updateHeight(); }
-});
+});
Please sign in to comment.
Something went wrong with that request. Please try again.