             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


          commentEl.dataset.line = line
          commentEl.dataset.index = chatIndex
          commentEl.style.top = line * settings.commentHeight + 'px'
          commentEl.style.left = commentOffset + 'px'
          lineEndTimes[index] = chat.vpos / 100 + settings.commentPostTime

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

      setInterval ->
        updateComment()
      , 33

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

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