base-layout.js 849 Bytes
var myLayout;

$(function() {
  $('#content').height($(window).height() - $('#main_menu').height());
  $(window).resize(function() {
    $('#content').height($(window).height() - $('#main_menu').height());
    if ($.fn.jqGrid) {
      jQuery('#scroll').jqGrid('setGridHeight', $('#left').height() - 25 - $('#search-panel').height());
    }
  });
  if ($.fn.splitter) {
    $('#left').bind('resize', function(e) {
      jQuery("#scroll").jqGrid('setGridWidth', $('#left').width() - 2, true);
      jQuery('#scroll').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
    });
  }
});