That's unfortunate. Luckily, the problem seems to be as inconsistent as most difficult glitches are - putting my code into the production webpage and messing with the size parameters seems to serve as a good enough workaround.
Thanks for the reply.