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