imakewebthings/deck.js — pull request #75 by jlegewie (2012-04-09 17:11:10+00:00)
Title: rescale after MathJax startup process has completed

Hi,

I made this small adjustment to deck.rescale.js. It rescales the deck after MathJax is done with rendering the math formula. Currently, deck.js rescales before MathJax is done, which does not take into account the space formulas take in the deck. As a consequence, content might be pushed out of the visible region after the formatting of formulas. With this addition, deck.js rescales after MathJax is done with formatting solving this problem. The additional rescaling only happens if typeof(MathJax)==="object" so that it has no effect for people who are not using MathJax.

I am not sure whether this is of general interest but I thought I will share it. So feel free to reject the pull request if you think that it should not be part of deck.js...