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 { .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 { .CodeMirror-scroll {
height: auto; /* Changed to auto to autogrow */ height: auto; /* Changed to auto to autogrow */
overflow-y: visible; /* Changed from auto to remove scrollbar */ /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
overflow-x: auto; /* Changed from auto to remove scrollbar */ /* 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. */ /* CSS font colors for translated ANSI colors. */

View File

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