Skip to content

Commit

Permalink
Fix #102 Bad init of secondary row height if view is in a dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Garbarino committed Oct 6, 2014
1 parent 1b5f2c6 commit 84c5c75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ColumnViewSecondarySheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ function(arr,
return;
}
var h = domGeometry.getMarginBox(this.domNode).h;
if(this._defaultHeight == -1){
if(this._defaultHeight == -1 || // not set
this._defaultHeight === 0){ // initialized at 0, must be reset
this._defaultHeight = h;
}

if(this._defaultHeight != -1 && this._defaultHeight != h && h >= this._getExpandedHeight() ||
if(this._defaultHeight != h && h >= this._getExpandedHeight() ||
this._expandedRowCol !== undefined && this._expandedRowCol !== -1){
var col = this._expandedRowCol;
if(col >= this.renderData.columnCount){
Expand Down

0 comments on commit 84c5c75

Please sign in to comment.