Skip to content

Commit

Permalink
Merge pull request #17 from hiltonjanfield/master
Browse files Browse the repository at this point in the history
Bugfix panel height issue.
  • Loading branch information
Hilton Janfield committed Sep 14, 2015
2 parents 5067a6e + 78b94f5 commit 7dc0180
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/jquery.enhsplitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@
}

// Check for an empty container height (happens when height on the parent has not been set), and fix.
if (!settings.height && this.height() == 0) {
// Some weirdness has sometimes resulted in panel heights of 0.33333px, hence the < 1 check rather than == 0.
if (!settings.height && this.height() < 1) {
settings.height = '10em';
}

Expand All @@ -140,8 +141,6 @@

var containerSize = settings.vertical ? this.width() : this.height();

console.log(settings);

if (typeof settings.minSize !== 'undefined') { settings.leftMinSize = settings.rightMinSize = settings.minSize; }
if (typeof settings.maxSize !== 'undefined') { settings.leftMaxSize = settings.rightMaxSize = settings.maxSize; }

Expand Down

0 comments on commit 7dc0180

Please sign in to comment.