# HG changeset patch # User Nicholas Jillings # Date 1452610702 0 # Node ID e3155b62af12d41e238a6ba98418f4be6ac91d8c # Parent da1954725350afe42204b9e0d9fa6e6637b3eaf7 AB: Fixed floating submit. diff -r da1954725350 -r e3155b62af12 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'; }