Changing CodeMirror-scroll to overflow-y: hidden.

* It seems that our old setting of visible was causing scroll bars
  to appear if font sizes change in Chrome.
* Also changed json -> xml in Download UI.
This commit is contained in:
Brian E. Granger 2011-08-19 15:49:50 -07:00
parent ea8b4de42d
commit 133b96d086
2 changed files with 7 additions and 5 deletions

View File

@ -266,13 +266,15 @@ div.text_cell_render {
}
.CodeMirror {
line-height: 1.231; /* Changed from 1em to our global default */
line-height: 1.231; /* Changed from 1em to our global default */
}
.CodeMirror-scroll {
height: auto; /* Changed to auto to autogrow */
overflow-y: visible; /* Changed from auto to remove scrollbar */
overflow-x: auto; /* Changed from auto to remove scrollbar */
height: auto; /* Changed to auto to autogrow */
/* 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-y: hidden;
overflow-x: auto; /* Changed from auto to remove scrollbar */
}
/* CSS font colors for translated ANSI colors. */

View File

@ -62,7 +62,7 @@
<div class="section_row">
<span>
<select id="download_format">
<option value="json">json</option>
<option value="json">ipynb</option>
<option value="py">py</option>
</select>
</span>