Fix resizing for multiple concurrent instances.
Update demo page.