base-layout.js
843 Bytes
$(function() {
"use strict";
var content = $('#content'), left = $('#left'), scroll = $('#scroll');
content.height($(window).height() - $('#main_menu').height());
$(window).resize(function() {
content.height($(window).height() - $('#main_menu').height());
if ($.fn.jqGrid) {
scroll.jqGrid('setGridHeight', left.height() - 25 - $('#search-panel').height());
}
});
if ($.fn.splitter) {
left.bind('resize', function(e) {
scroll.jqGrid('setGridWidth', left.width() - 2, true)
.jqGrid('setGridHeight', left.height() - 25 - $('#search-panel').height());
e.stopPropagation();
});
$('#right').bind('resize', function(e) {
e.stopPropagation();
});
content.splitter({
type: "v",
minLeft: 200, sizeLeft: 360, minRight: 100,
resizeToWidth: true
});
}
});