Fix for pages with long text

Fixes the problem in pages with long text by applying the transform to a wrapper instead of the body.
There's a demo page for this along with the original one.