function handleMoveDragBar(event) {
  var msgListOuter = $("#msglist-outer");
  var msgListOuterTop = msgListOuter.offset().top;
  var msgListOuterHeight = msgListOuter.height();
  var dragBarHeight = $("#dragbar").height();
  var msgListInnerTop = parseInt($("#msglist-inner").offset().top);
  var msgListRelOffset = msgListInnerTop - msgListOuterTop;
  var usableHeight = msgListOuterHeight - msgListRelOffset;

  var relDragLocation = parseInt(event.pageY - msgListInnerTop);
  if (relDragLocation < 0) relDragLocation = 0;
  if (relDragLocation > usableHeight - (dragBarHeight - 2)) relDragLocation = usableHeight - (dragBarHeight - 2);
  var newMsgListHeight = relDragLocation - parseInt(dragBarHeight / 2);
  var newMsgViewHeight = msgListOuterHeight - msgListRelOffset - newMsgListHeight - dragBarHeight - 1;
  $("#msglist-inner").height(newMsgListHeight);
  $("#msgview-inner").height(newMsgViewHeight);
}
// Handle moving the drag bar.
Handle moving the drag bar.
Handle moving the drag bar .
function handleMoveDragBar(event) {
  var msgListOuter = $("#msglist-outer");
  var msgListOuterTop = msgListOuter.offset().top;
  var msgListOuterHeight = msgListOuter.height();
  var dragBarHeight = $("#dragbar").height();
  var msgListInnerTop = parseInt($("#msglist-inner").offset().top);
  var msgListRelOffset = msgListInnerTop - msgListOuterTop;
  var usableHeight = msgListOuterHeight - msgListRelOffset;
  var relDragLocation = parseInt(event.pageY - msgListInnerTop);
  if (relDragLocation < 0) relDragLocation = 0;
  if (relDragLocation > usableHeight - (dragBarHeight - 2)) relDragLocation = usableHeight - (dragBarHeight - 2);
  var newMsgListHeight = relDragLocation - parseInt(dragBarHeight / 2);
  var newMsgViewHeight = msgListOuterHeight - msgListRelOffset - newMsgListHeight - dragBarHeight - 1;
  $("#msglist-inner").height(newMsgListHeight);
  $("#msgview-inner").height(newMsgViewHeight);
}
function handleMoveDragBar ( event ) { var msgListOuter = $ ( "#msglist-outer" ) ; var msgListOuterTop = msgListOuter . offset ( ) . top ; var msgListOuterHeight = msgListOuter . height ( ) ; var dragBarHeight = $ ( "#dragbar" ) . height ( ) ; var msgListInnerTop = parseInt ( $ ( "#msglist-inner" ) . offset ( ) . top ) ; var msgListRelOffset = msgListInnerTop - msgListOuterTop ; var usableHeight = msgListOuterHeight - msgListRelOffset ; var relDragLocation = parseInt ( event . pageY - msgListInnerTop ) ; if ( relDragLocation < 0 ) relDragLocation = 0 ; if ( relDragLocation > usableHeight - ( dragBarHeight - 2 ) ) relDragLocation = usableHeight - ( dragBarHeight - 2 ) ; var newMsgListHeight = relDragLocation - parseInt ( dragBarHeight / 2 ) ; var newMsgViewHeight = msgListOuterHeight - msgListRelOffset - newMsgListHeight - dragBarHeight - 1 ; $ ( "#msglist-inner" ) . height ( newMsgListHeight ) ; $ ( "#msgview-inner" ) . height ( newMsgViewHeight ) ; }
Handle moving the drag bar.
Handle moving the drag bar .