Skip to content

Commit

Permalink
Match the max tooltip and bottom area sizes in the notebook.
Browse files Browse the repository at this point in the history
This prevents the tooltip from going below the bottom of the page,
which makes it inaccessible by any mechanism and thus useless.
  • Loading branch information
fperez committed Nov 28, 2011
1 parent 65546bf commit 2c9efed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IPython/frontend/html/notebook/static/css/notebook.css
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ div.text_cell_render {

/*properties of tooltip after "expand"*/
.bigtooltip{
height:60%;
height:30%;
}

/*properties of tooltip before "expand"*/
Expand Down
2 changes: 1 addition & 1 deletion IPython/frontend/html/notebook/static/js/notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = $('<div class="end_space"></div>').height(150);
var end_space = $('<div class="end_space"></div>').height("30%");
end_space.dblclick(function (e) {
if (that.read_only) return;
var ncells = that.ncells();
Expand Down

0 comments on commit 2c9efed

Please sign in to comment.