* difference between inner and outer content width
* @var object
*/
+ /*
_dimensionDifferences: {
height: 0,
width: 0
- },
+ },*/
/**
* rendering state
}
}
+ /*
// caulculate dimensions differences
this._container.show();
var $contentInnerDimensions = this._content.getDimensions();
height: ($contentOuterDimensions.height - $contentInnerDimensions.height),
width: ($contentOuterDimensions.width - $contentInnerDimensions.width)
};
+ */
},
/**
// calculate dimensions
var $windowDimensions = $(window).getDimensions();
var $containerDimensions = this._container.getDimensions('outer');
- var $contentDimensions = this._content.getDimensions('outer');
+ var $contentDimensions = this._content.getDimensions();
// calculate maximum content height
var $heightDifference = $containerDimensions.height - $contentDimensions.height;
- var $maximumHeight = $windowDimensions.height - $heightDifference - (this._dimensionDifferences.height * 2);
+ var $maximumHeight = $windowDimensions.height - $heightDifference/* - (this._dimensionDifferences.height * 2)*/;
this._content.css({ maxHeight: $maximumHeight + 'px' });
// re-caculate values if container height was previously limited
}
// fix dimensions
+ /*
$contentDimensions = {
- height: $contentDimensions.height/* - this._dimensionDifferences.height*/,
+ height: $contentDimensions.height*//* - this._dimensionDifferences.height*//*,
width: $contentDimensions.width - this._dimensionDifferences.width
};
+ */
return $contentDimensions;
}