Removing viewportSize to fix issue in Firefox and eliminate excessive repaints