 
         router = new PlayerRouter()
 
-        playlistHeight = $(document).height() - $("#content").height()
-        $(".remove-after-height-calculation").remove()
+        viewport = new Viewport document
 
         queueTable = $("#queue")
-        queueTable.data "targetHeight", playlistHeight
         playlist = $("#playlist")
-        playlist.data "targetHeight", playlistHeight
-
-        QueueView $("#toggle-queue"), queueTable, songQueue, playerInstance, playlist
+        QueueView $("#toggle-queue"), queueTable, songQueue, playerInstance, playlist, viewport
 
         search = new Search localStorage
 

                song = queue.remove iPos
                player.play song

PlaylistView = (playlistElement, songData, player, queue, router, search) ->
        columns = []

        columns.push

        for song in queue.fullQueue()
                queueData.push songToQueueRow song

        table = queueElement.dataTable
                sScrollY: "#{viewport.playlistHeight}px"
                sScrollX: "100%"
                sScrollXInner: "100%"
                bScrollCollapse: false
