--- imce_extras.js	2010-03-17 21:55:38.000000000 +0100
+++ imce_extras.js.patched	2010-04-23 11:40:54.968750000 +0200
@@ -168,6 +168,20 @@ imce.initiateResizeBars = function () {
     imce.cookie('ih2', $(imce.PW).height());
     imce.cookie('iw1', Math.max($(imce.NW).width(), 1));
   });
+
+  //patch
+  $('html, body').css({
+    margin: 0,
+    padding: 0,
+    height: '100%',
+    overflow: 'hidden'
+  });
+  var resize = function() {
+    $('#preview-wrapper').height($('body').height() - $('#resizable-content').height() + $('#preview-wrapper').height());
+  };
+  $(window).resize(resize);
+  resize();
+  //~patch
 };
 
 //set a resize bar
@@ -175,6 +189,7 @@ imce.setResizer = function (resizer, axi
   var opt = axis == 'X' ? {pos: 'pageX', func: 'width'} : {pos: 'pageY', func: 'height'};
   var Min = Min || 0;
   var $area1 = $(imce.el(area1)), $area2 = area2 ? $(imce.el(area2)) : null, $doc = $(document);
+  if (!imce.el(resizer)) return; //patch
   $(imce.el(resizer)).mousedown(function(e) {
     var pos = e[opt.pos];
     var end = start = $area1[opt.func]();
