That should work, so I’m not sure why it isn’t. Possibly an autorestore issue? Any chance that resizing the browser window makes the Glk window go to the proper size?
Aha! I’ve been running into autorestore issues a lot and this seems to have been one of them. Changing the source and hitting Release again (to break autosaves) fixed it.
Is there a good way to purge Parchment autosaves in general? Right now, if I change the website template and hit Release (so that the page has changed but the game checksum hasn’t), I can’t test anything, because the autorestore breaks and Parchment crashes. I’ve resorted to adding spaces to a useless piece of text every time I hit Release to ensure the checksum changes.
I now have version 2023.10, and it seems to be doing okay so far (though the scroll bar issue from last ECTOCOMP remains annoying). Unless the issue shows back up I’ll chalk it up to having an old version!
When the browser window is resized, it’s setting the gameport height to the full height of the window, not to the height of the window minus any other elements, so the bottom of the gameport (with the text prompt) goes off the bottom of the screen.
Since this is the only time the main window scrolls, I’ve been patching around it with this bit of JS:
function fix_height(){
document.getElementById("gameport").style.setProperty("height", "auto");
}
window.addEventListener('scroll', fix_height);
The top value needs to stay at 0, instead all you would change would be the margin property. (0 auto is a shorthand for top/bottom margins being 0 and left/right being auto.)
I suspect that the onecol template isn’t really safely useable with modern Parchment. It will work most of the time, but some of these edge cases may trip it up.