function handleResizeWindow(event) {
  if (!$("html").hasClass("ajax")) {
    return;
  }

  // Resize the left column.
  resizeBoxList();

  // Resize the right column.
  var newWindowHeight = $(window).height();
  var msgListOuter = $("#msglist-outer");
  var msgListInner = $("#msglist-inner");
  var dragBar = $("#dragbar");
  var msgView = $("#msgview-inner");

  var msgListOuterTop = msgListOuter.offset().top;
  var newContainerHeight = newWindowHeight - msgListOuterTop;
  msgListOuter.height(newContainerHeight);

  var msgListTop = msgListInner.offset().top;
  var msgListHeight = msgListInner.height();
  var dragBarHeight = dragBar.height();
  var msgViewHeight = msgView.height();
  var msgListRelOffset = msgListTop - msgListOuterTop;

  if (newContainerHeight <= msgListRelOffset + dragBarHeight) {
    msgListInner.height(0);
    msgView.height(0);
  } else if (newContainerHeight > msgListHeight + dragBarHeight + msgListRelOffset) {
    msgView.height(newContainerHeight - msgListHeight - dragBarHeight - msgListRelOffset);
  } else {
    msgListInner.height(newContainerHeight - dragBarHeight - msgListRelOffset);
    msgView.height(0);
  }
}
// Called when the browser window is resized.
Called when the browser window is resized.
Called when the browser window is resized .
function handleResizeWindow(event) {
  if (!$("html").hasClass("ajax")) {
    return;
  }
  resizeBoxList();
  var newWindowHeight = $(window).height();
  var msgListOuter = $("#msglist-outer");
  var msgListInner = $("#msglist-inner");
  var dragBar = $("#dragbar");
  var msgView = $("#msgview-inner");
  var msgListOuterTop = msgListOuter.offset().top;
  var newContainerHeight = newWindowHeight - msgListOuterTop;
  msgListOuter.height(newContainerHeight);
  var msgListTop = msgListInner.offset().top;
  var msgListHeight = msgListInner.height();
  var dragBarHeight = dragBar.height();
  var msgViewHeight = msgView.height();
  var msgListRelOffset = msgListTop - msgListOuterTop;
  if (newContainerHeight <= msgListRelOffset + dragBarHeight) {
    msgListInner.height(0);
    msgView.height(0);
  } else if (newContainerHeight > msgListHeight + dragBarHeight + msgListRelOffset) {
    msgView.height(newContainerHeight - msgListHeight - dragBarHeight - msgListRelOffset);
  } else {
    msgListInner.height(newContainerHeight - dragBarHeight - msgListRelOffset);
    msgView.height(0);
  }
}
function handleResizeWindow ( event ) { if ( ! $ ( "html" ) . hasClass ( "ajax" ) ) { return ; } resizeBoxList ( ) ; var newWindowHeight = $ ( window ) . height ( ) ; var msgListOuter = $ ( "#msglist-outer" ) ; var msgListInner = $ ( "#msglist-inner" ) ; var dragBar = $ ( "#dragbar" ) ; var msgView = $ ( "#msgview-inner" ) ; var msgListOuterTop = msgListOuter . offset ( ) . top ; var newContainerHeight = newWindowHeight - msgListOuterTop ; msgListOuter . height ( newContainerHeight ) ; var msgListTop = msgListInner . offset ( ) . top ; var msgListHeight = msgListInner . height ( ) ; var dragBarHeight = dragBar . height ( ) ; var msgViewHeight = msgView . height ( ) ; var msgListRelOffset = msgListTop - msgListOuterTop ; if ( newContainerHeight <= msgListRelOffset + dragBarHeight ) { msgListInner . height ( 0 ) ; msgView . height ( 0 ) ; } else if ( newContainerHeight > msgListHeight + dragBarHeight + msgListRelOffset ) { msgView . height ( newContainerHeight - msgListHeight - dragBarHeight - msgListRelOffset ) ; } else { msgListInner . height ( newContainerHeight - dragBarHeight - msgListRelOffset ) ; msgView . height ( 0 ) ; } }
Called when the browser window is resized.
Called when the browser window is resized .
// Resize the left column. // Resize the right column.