##// END OF EJS Templates
Backport PR #5459: Fix interact animation page jump FF...
Backport PR #5459: Fix interact animation page jump FF Firefox doesn't render images immediately as the data is available. When animating the way that we animate, this causes the output area to collapse quickly before returning to its original size. When the output area collapses, FireFox scrolls upwards in attempt to compensate for the lost vertical content (so it looks like you are on the same spot in the page, with respect to the contents below the image's prior location). The solution is to resize the image output after the `img onload` event has fired. This PR: - Releases the `clear_output` height lock after the image has been loaded (instead of immediately or using a timeout). - Removes a `setTimeout` call in the `append_output` method. - `clear_output` in zmqshell no longer sends `\r` to the stream outputs. closes #5128

File last commit:

r16004:0faec7c5
r16229:ff1462d3
Show More
rst.tpl
80 lines | 1.5 KiB | application/vnd.groove-tool-template | SmartyLexer
Matthias BUSSONNIER
create rst converter and fix some bugs
r9642 {%- extends 'display_priority.tpl' -%}
Matthias BUSSONNIER
start rst converter
r9641
Matthew Brett
BF: fix nbconert rst input prompt spacing...
r12114 {% block in_prompt %}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock in_prompt %}
damianavila
Redo of fixing templates structure.
r11770 {% block output_prompt %}
{% endblock output_prompt %}
Matthias BUSSONNIER
start rst converter
r9641
damianavila
Redo of fixing templates structure.
r11770 {% block input %}
MinRK
fix check for empty cells in rst template...
r16004 {%- if cell.input.strip() -%}
MinRK
minor adjustments to markdown / rst templates...
r12448 .. code:: python
damianavila
Redo of fixing templates structure.
r11770 {{ cell.input | indent}}
MinRK
minor adjustments to markdown / rst templates...
r12448 {%- endif -%}
Matthias BUSSONNIER
create rst converter and fix some bugs
r9642 {% endblock input %}
Matthias BUSSONNIER
start rst converter
r9641
damianavila
Redo of fixing templates structure.
r11770 {% block pyerr %}
::
MinRK
minor adjustments to markdown / rst templates...
r12448
Matthias BUSSONNIER
fix data priority rst
r9643 {{ super() }}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock pyerr %}
{% block traceback_line %}
damianavila
Redo of fixing templates structure.
r11770 {{ line | indent | strip_ansi }}
{% endblock traceback_line %}
Matthias BUSSONNIER
start rst converter
r9641
{% block pyout %}
damianavila
Redo of fixing templates structure.
r11770 {% block data_priority scoped %}
{{ super() }}
{% endblock %}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock pyout %}
{% block stream %}
.. parsed-literal::
damianavila
Redo of fixing templates structure.
r11770 {{ output.text | indent }}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock stream %}
damianavila
Redo of fixing templates structure.
r11770 {% block data_svg %}
Paul Ivanov
urlencode images for rst files...
r15880 .. image:: {{ output.svg_filename|urlencode }}
Matthias BUSSONNIER
create rst converter and fix some bugs
r9642 {% endblock data_svg %}
Matthias BUSSONNIER
start rst converter
r9641
damianavila
Redo of fixing templates structure.
r11770 {% block data_png %}
Paul Ivanov
urlencode images for rst files...
r15880 .. image:: {{ output.png_filename|urlencode }}
Matthias BUSSONNIER
create rst converter and fix some bugs
r9642 {% endblock data_png %}
damianavila
Redo of fixing templates structure.
r11770 {% block data_jpg %}
Paul Ivanov
urlencode images for rst files...
r15880 .. image:: {{ output.jpeg_filename|urlencode }}
Matthias BUSSONNIER
fix data priority rst
r9643 {% endblock data_jpg %}
damianavila
Redo of fixing templates structure.
r11770 {% block data_latex %}
.. math::
MinRK
minor adjustments to markdown / rst templates...
r12448
{{ output.latex | strip_dollars | indent }}
Matthias BUSSONNIER
fix data priority rst
r9643 {% endblock data_latex %}
damianavila
Redo of fixing templates structure.
r11770 {% block data_text scoped %}
.. parsed-literal::
MinRK
minor adjustments to markdown / rst templates...
r12448
damianavila
Redo of fixing templates structure.
r11770 {{ output.text | indent }}
Matthias BUSSONNIER
create rst converter and fix some bugs
r9642 {% endblock data_text %}
MinRK
minor adjustments to markdown / rst templates...
r12448 {% block data_html scoped %}
.. raw:: html
{{ output.html | indent }}
{% endblock data_html %}
damianavila
Redo of fixing templates structure.
r11770 {% block markdowncell scoped %}
{{ cell.source | markdown2rst }}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock markdowncell %}
{% block headingcell scoped %}
MinRK
use markdown for rst headings...
r11317 {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock headingcell %}
{% block unknowncell scoped %}
unknown type {{cell.type}}
Matthew Brett
BF: fix nbconert rst input prompt spacing...
r12114 {% endblock unknowncell %}