fix offset calc if scrolled
fix offset again, add aspectRatio field to demo