Skip to content

Commit

Permalink
Fixed #169
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonhellman committed Dec 1, 2018
1 parent 5215742 commit 64911d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mturk/workspace-expander.js
Expand Up @@ -7,6 +7,7 @@ async function workspaceExpander() {
const workspace = document.querySelector('#MainContent');
const taskRow = document.querySelector('.task-row');
const taskPreview = document.querySelector('.task-preview');
const iframeContainer = document.querySelector('.task-row > .col-xs-12');
const iframe = document.querySelector('.task-question-iframe-container');

if (workspace) {
Expand All @@ -24,6 +25,11 @@ async function workspaceExpander() {
taskPreview.scrollIntoView();
}

if (iframeContainer) {
iframeContainer.style.height = `100%`;
iframeContainer.scrollIntoView();
}

if (iframe) {
iframe.style.height = `100%`;
iframe.scrollIntoView();
Expand Down

0 comments on commit 64911d7

Please sign in to comment.