fix firefox compatibility

This commit is contained in:
Matthias BUSSONNIER 2012-05-08 09:46:52 +02:00
parent 785fbd9d9a
commit 4cfd7e9df6

View File

@ -24,7 +24,7 @@ var IPython = (function (IPython) {
helper: null ,
drag: function(event,ui){
// recalculate the amount of space the pager should take
var pheight =(document.height-event.clientY-4);
var pheight =($(body).height()-event.clientY-4);
var downprct = pheight/IPython.layout_manager.app_height();
downprct = Math.min(0.9,downprct);
if(downprct < 0.1) {