Skip to content

Commit

Permalink
rollback ipython#3358
Browse files Browse the repository at this point in the history
closes ipython#3391

For users who need to hide the scrollbars while zooming text in the meantime, you can add the following to your custom.css:

```css
.CodeMirror-scroll, .CodeMirror-wrap .CodeMirror-scroll {
  overflow: scroll;
}

.CodeMirror-vscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-hscrollbar {
    visibility: hidden;
}
```
  • Loading branch information
minrk committed Jun 4, 2013
1 parent 05b899e commit caf1f4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,8 @@
.CodeMirror-scroll {
/* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
/* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
/* overflow: scroll prevents scrollbars being drawn on top of the last line of the cell, */
/* but at the expense of extra gutter at the bottom. To compensate, we shrink the margin */
/* between the last line and the scrollbar when it's drawn. */
overflow: scroll;
margin-bottom: -38px; /* default margin is -30px */
}

/* this one is needed for Text Cells to match code cells for some reason */
.CodeMirror-wrap .CodeMirror-scroll {
overflow: scroll;
}

/* CM sometimes draws a vertical scrollbar under zoom, but it never should in the Notebook. */
/* this hides them - display: none would be preferable, but it gets clobbered by CodeMirror */
.CodeMirror-vscrollbar, .CodeMirror-scrollbar-filler {
visibility: hidden;
overflow-y: hidden;
overflow-x: auto;
}

.CodeMirror-lines {
Expand Down
4 changes: 1 addition & 3 deletions IPython/frontend/html/notebook/static/style/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit caf1f4e

Please sign in to comment.