niklasvh/html2canvas — pull request #439 by ddrscott (2014-09-04 19:16:20+00:00)
Title: use cloned document for measurements

This fixed a problem I was having in my main project. Looks like you were always referring to window.document which measured the js container instead of the iFrame.