From 2c9efed54f75c80f7f1e0318116419600ca1b9b1 2011-11-28 03:49:00 From: Fernando Perez Date: 2011-11-28 03:49:00 Subject: [PATCH] Match the max tooltip and bottom area sizes in the notebook. This prevents the tooltip from going below the bottom of the page, which makes it inaccessible by any mechanism and thus useless. --- diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css index 924a6c1..d2a37af 100644 --- a/IPython/frontend/html/notebook/static/css/notebook.css +++ b/IPython/frontend/html/notebook/static/css/notebook.css @@ -372,7 +372,7 @@ div.text_cell_render { /*properties of tooltip after "expand"*/ .bigtooltip{ - height:60%; + height:30%; } /*properties of tooltip before "expand"*/ diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index bf219b4..cf5c7fa 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -44,7 +44,7 @@ var IPython = (function (IPython) { // ii) to prevent the div from scrolling up when the last cell is being // edited, but is too low on the page, which browsers will do automatically. var that = this; - var end_space = $('
').height(150); + var end_space = $('
').height("30%"); end_space.dblclick(function (e) { if (that.read_only) return; var ncells = that.ncells();