Merge pull request #1064 from minrk/nbconvert-errors

scroll long tracebacks to the bottom
This commit is contained in:
Matthias Bussonnier 2016-02-08 11:20:55 -08:00
commit 9f6dfc8e0a
2 changed files with 15 additions and 0 deletions

View File

@ -17,4 +17,8 @@ div.traceback-wrapper {
text-align: left;
max-width: 800px;
margin: auto;
pre.traceback {
max-height: 600px;
overflow: auto;
}
}

View File

@ -29,3 +29,14 @@ div#header, div#site {
</header>
{% endblock %}
{% block script %}
{{super()}}
<script type='text/javascript'>
require(['jquery'], function($) {
// scroll long tracebacks to the bottom
var tb = $(".traceback")[0];
tb.scrollTop = tb.scrollHeight;
});
</script>
{% endblock script %}