# HG changeset patch # User Nicholas Jillings # Date 1449832751 0 # Node ID 56b1f84f967b85f60c01bf8782084ab3c955e2cf # Parent 5040ba7c3682623785870f2f2ca1d1080dd68161 Bug #1467: Popup resize created and bound to Interface.resize() diff -r 5040ba7c3682 -r 56b1f84f967b 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