             removalPendingElements.push commentEl
           else
             scrollTime = (vpos + settings.commentPreTime) - chat.vpos / 100
-            commentWidth = commentEl.offsetWidth
+            commentWidth = parseInt commentEl.dataset.width
             scrollPath = videoWidth + commentWidth
 
             scrollOffset = scrollPath / settings.commentTime * scrollTime

        if not player.paused()
          seconds = player.currentTime()
          scrollCommentTime seconds
          updateComment()
      , 100

      layoutComment = (chat, chatIndex) ->
        vpos = player.currentTime()
        videoWidth = videoEl.offsetWidth

        if vpos - settings.commentPostTime < chat.vpos / 100 < vpos + settings.commentPreTime
          scrollTime = (vpos + settings.commentPreTime) - chat.vpos / 100


      updateComment = ->
        vpos = player.currentTime()
        videoWidth = player.width()

        removalPendingElements = []

