Skip to content

Commit

Permalink
Merge branch 'feature/ie11-scroll-support' into develop
Browse files Browse the repository at this point in the history
[SVCS-287]
Closes: #295
  • Loading branch information
felliott committed Nov 6, 2017
2 parents d6f20ba + 00517ba commit ee122ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mfr/extensions/jasp/templates/viewer.mako
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div style="word-wrap: break-word;" class="mfrViewer">
<div style="word-wrap: break-word; overflow: auto" class="mfrViewer">
${body}
</div>

Expand Down
1 change: 1 addition & 0 deletions mfr/server/static/js/mfr.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
self.pymParent.iframe.setAttribute('scrolling', 'yes');
self.pymParent.iframe.setAttribute('horizontalscrolling', 'yes');
self.pymParent.iframe.setAttribute('verticalscrolling', 'yes');
self.pymParent.iframe.setAttribute('overflow', 'scroll');

self.pymParent.el.appendChild(self.spinner);
$(self.pymParent.iframe).on('load', function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/extensions/jasp/test_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class TestCodeJASPRenderer:

def test_render_JASP(self, renderer):
body = renderer.render()
assert '<div style="word-wrap: break-word;" class="mfrViewer">' in body
assert '<div style="word-wrap: break-word; overflow: auto" class="mfrViewer">' in body

def test_render_JASP_not_a_zip_file(self, metadata, not_a_zip_file_path, url, assets_url, export_url):
try:
Expand Down

0 comments on commit ee122ff

Please sign in to comment.