Fixes left position not being reset correctly

Fixes issue with left position not being reset to the original value after scrolling a container.