fix the targetHeight calc error
fix file encoding
change tab to 4 space