Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #188 from tony2n2/master
Browse files Browse the repository at this point in the history
docked testContainer should stick to the bottom of the window
  • Loading branch information
trentmwillis authored Sep 9, 2017
2 parents 2887bf9 + 27704c8 commit a15252f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addon-test-support/ember-cli-qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,19 @@ export function setupTestContainer() {
let params = QUnit.urlParams;

let containerVisibility = params.nocontainer ? 'hidden' : 'visible';
let containerPosition = (params.dockcontainer || params.devmode) ? 'absolute' : 'relative';
let containerPosition = (params.dockcontainer || params.devmode) ? 'fixed' : 'relative';

if (params.devmode) {
testContainer.className = ' full-screen';
}

testContainer.style.visibility = containerVisibility;
testContainer.style.position = containerPosition;

let qunitContainer = document.getElementById('qunit');
if (params.dockcontainer) {
qunitContainer.style.marginBottom = window.getComputedStyle(testContainer).height;
}
}

/**
Expand Down

0 comments on commit a15252f

Please sign in to comment.