diff core.js @ 1421:56b1f84f967b

Bug #1467: Popup resize created and bound to Interface.resize()
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 11 Dec 2015 11:19:11 +0000
parents abbe484649cf
children c8f99418b34b
line wrap: on
line diff
--- a/core.js	Fri Dec 11 11:06:21 2015 +0000
+++ b/core.js	Fri Dec 11 11:19:11 2015 +0000
@@ -569,6 +569,16 @@
 			}
 		}
 	};
+	
+	this.resize = function(event)
+	{
+		// Called on window resize;
+		this.popup.style.left = (window.innerWidth/2)-250 + 'px';
+		this.popup.style.top = (window.innerHeight/2)-125 + 'px';
+		var blank = document.getElementsByClassName('testHalt')[0];
+		blank.style.width = window.innerWidth;
+		blank.style.height = window.innerHeight;
+	};
 }
 
 function advanceState()
@@ -2160,6 +2170,7 @@
 	
 	this.resizeWindow = function(event)
 	{
+		popup.resize(event);
 		for(var i=0; i<this.commentBoxes.length; i++)
 		{this.commentBoxes[i].resize();}
 		for(var i=0; i<this.commentQuestions.length; i++)