
var MATRIX_CONTENT_POSITION_TOP = 82;

var MatrixContent = {
	__content: null,
	__container: null,
	
	init: function()
	{
		this.__content = $('#matrix-content');
		this.__container = $('#matrix-container');
		this.resize();
	},
	
	getHeight: function()
	{
		return this.__content.get(0).offsetHeight;
	},
	
	getTotalHeight: function()
	{
		return this.getHeight() + MATRIX_CONTENT_POSITION_TOP;
	},
	
	resize: function()
	{
		var totalHeight = this.getTotalHeight();
		var containerHeight = this.__container.height();
		if ( containerHeight < totalHeight )
		{
			this.__container.height(totalHeight);
		}
	}
};

$(document).ready(function(){
	MatrixContent.init();
});

