- Matterport Service Partner
371 posts · Joined May 2016 · 📍 New Brighton, PA, United States

Back a couple of moths ago @Olivius posted this js code snippet:
<script>
function ChangeSize(){
var windowWidth = 500;
var windowHeight = 800;
var xPos = (screen.width/2) - (windowWidth/2);
var yPos = (screen.height/2) - (windowHeight/2);
window.resizeTo(windowWidth,windowHeight);
window.moveTo(xPos,yPos);
}
</script>
<body onload="ChangeSize()">
...
</body>
This snippet was to resize popup window for a Mattertag link. This was when it was in beta (ex. [link](http:www.the URLyou want)
)and it worked with that format within the tag.
They have changed the input method to make it more user-friendly. My question is, will the js code snippet still work?
<script>
function ChangeSize(){
var windowWidth = 500;
var windowHeight = 800;
var xPos = (screen.width/2) - (windowWidth/2);
var yPos = (screen.height/2) - (windowHeight/2);
window.resizeTo(windowWidth,windowHeight);
window.moveTo(xPos,yPos);
}
</script>
<body onload="ChangeSize()">
...
</body>
This snippet was to resize popup window for a Mattertag link. This was when it was in beta (ex. [link](http:www.the URLyou want)
)and it worked with that format within the tag.
They have changed the input method to make it more user-friendly. My question is, will the js code snippet still work?

