Mercurial > hg > webaudioevaluationtool
comparison core.js @ 473:5bd699bc44d2 Dev_main
popup resize not called if not created. Horizontal sliders resize on window resize function.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Wed, 13 Jan 2016 14:02:00 +0000 |
parents | 23f77550b842 |
children | 63461187a425 |
comparison
equal
deleted
inserted
replaced
472:23f77550b842 | 473:5bd699bc44d2 |
---|---|
662 }; | 662 }; |
663 | 663 |
664 this.resize = function(event) | 664 this.resize = function(event) |
665 { | 665 { |
666 // Called on window resize; | 666 // Called on window resize; |
667 this.popup.style.left = (window.innerWidth/2)-250 + 'px'; | 667 if (this.popup != null) { |
668 this.popup.style.top = (window.innerHeight/2)-125 + 'px'; | 668 this.popup.style.left = (window.innerWidth/2)-250 + 'px'; |
669 var blank = document.getElementsByClassName('testHalt')[0]; | 669 this.popup.style.top = (window.innerHeight/2)-125 + 'px'; |
670 blank.style.width = window.innerWidth; | 670 var blank = document.getElementsByClassName('testHalt')[0]; |
671 blank.style.height = window.innerHeight; | 671 blank.style.width = window.innerWidth; |
672 blank.style.height = window.innerHeight; | |
673 } | |
672 }; | 674 }; |
673 } | 675 } |
674 | 676 |
675 function advanceState() | 677 function advanceState() |
676 { | 678 { |