# HG changeset patch # User Nicholas Jillings # Date 1449832751 0 # Node ID 28a7016bffde7f80ce1b60ebc4c17c1308ad3057 # Parent be470e2c4f776607213c319b2a6938cb2525c4c1 Bug #1467: Popup resize created and bound to Interface.resize() diff -r be470e2c4f77 -r 28a7016bffde 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