I agree, that one seems wrong. From measuring some snapshots of the animating demos though, it looks like they are doing it correctly, as the width doesn't seem to be changing like in that red and grey diagram. I haven't tried to understand the code though.