Avoid infinite heights in case there is nothing below

This commit is contained in:
Nathan Gray 2013-10-02 13:11:07 +00:00
parent d8ae1a63a4
commit 499c9f3c22

View File

@ -97,7 +97,7 @@ var et2_dynheight = Class.extend(
} }
// Get the height of the bottom container // Get the height of the bottom container
var bh = bmaxBot - bminTop; var bh = Math.max(0,bmaxBot - bminTop);
// Calculate the new height of the inner container // Calculate the new height of the inner container
var w = this.innerNode.width(); var w = this.innerNode.width();