Fix resize; attempt to fix pdf viewing