changeset 1137:c2be8061af00

AB: Fixed floating submit.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 12 Jan 2016 14:58:22 +0000
parents 45bb043fcd81
children 373a9fae8896
files AB.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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';
 }