Fixed #7804 Replace Math.trunc with Math.floor to make IE happy
(cherry picked from commit a1c3244c96b033891136ff2d95be61500a720231)
Fixed #7804 Replace Math.trunc with Math.floor to make IE happy
(cherry picked from commit a1c3244c96b033891136ff2d95be61500a720231)