comparison 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
comparison
equal deleted inserted replaced
1420:5040ba7c3682 1421:56b1f84f967b
566 break; 566 break;
567 } 567 }
568 } 568 }
569 } 569 }
570 } 570 }
571 };
572
573 this.resize = function(event)
574 {
575 // Called on window resize;
576 this.popup.style.left = (window.innerWidth/2)-250 + 'px';
577 this.popup.style.top = (window.innerHeight/2)-125 + 'px';
578 var blank = document.getElementsByClassName('testHalt')[0];
579 blank.style.width = window.innerWidth;
580 blank.style.height = window.innerHeight;
571 }; 581 };
572 } 582 }
573 583
574 function advanceState() 584 function advanceState()
575 { 585 {
2158 this.interfaceObjects = []; 2168 this.interfaceObjects = [];
2159 this.interfaceObject = function(){}; 2169 this.interfaceObject = function(){};
2160 2170
2161 this.resizeWindow = function(event) 2171 this.resizeWindow = function(event)
2162 { 2172 {
2173 popup.resize(event);
2163 for(var i=0; i<this.commentBoxes.length; i++) 2174 for(var i=0; i<this.commentBoxes.length; i++)
2164 {this.commentBoxes[i].resize();} 2175 {this.commentBoxes[i].resize();}
2165 for(var i=0; i<this.commentQuestions.length; i++) 2176 for(var i=0; i<this.commentQuestions.length; i++)
2166 {this.commentQuestions[i].resize();} 2177 {this.commentQuestions[i].resize();}
2167 try 2178 try