fixed loadingBar change direction affect position issue
Merge pull request #7712 from andyque/testLoadingBar

fixed loadingBar change direction affect position issue