# HG changeset patch # User Nicholas Jillings # Date 1452610702 0 # Node ID c2be8061af00260caca88b91ec731d6d1d89bf7c # Parent 45bb043fcd811221106afc8cbc97d4d3e7518722 AB: Fixed floating submit. diff -r 45bb043fcd81 -r c2be8061af00 AB.js --- a/AB.js Tue Jan 12 14:22:36 2016 +0000 +++ b/AB.js Tue Jan 12 14:58:22 2016 +0000 @@ -80,13 +80,13 @@ submit.style.left = (window.innerWidth-250)/2 + 'px'; feedbackHolder.appendChild(boxes); - feedbackHolder.appendChild(submit); // Inject into HTML testContent.appendChild(title); // Insert the title testContent.appendChild(pagetitle); testContent.appendChild(interfaceButtons); testContent.appendChild(feedbackHolder); + testContent.appendChild(submit); interfaceContext.insertPoint.appendChild(testContent); // Load the full interface @@ -240,6 +240,7 @@ diff = window.innerWidth - boxW; } document.getElementById('box-holders').style.marginLeft = diff/2 + 'px'; + document.getElementById('box-holders').style.marginRight = diff/2 + 'px'; document.getElementById('box-holders').style.width = boxW + 'px'; }