# HG changeset patch # User Nicholas Jillings # Date 1449832751 0 # Node ID 629b96c14ee13b226028a18448e63dff7721278e # Parent d0073ab16551d78e2a337df9d539f2867ce17d83 Bug #1467: Popup resize created and bound to Interface.resize() diff -r d0073ab16551 -r 629b96c14ee1 core.js --- 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