         for song in queue.fullQueue()
                 queueData.push songToQueueRow song
 
-        # Magical numbers based on Stetson-Harrison method.
-        playlistHeight = queueElement.data 'targetHeight'
-
         table = queueElement.dataTable
-                sScrollY: "#{playlistHeight}px"
+                sScrollY: "#{viewport.playlistHeight}px"
                 sScrollX: "100%"
                 sScrollXInner: "100%"
                 bScrollCollapse: false


                $("#initial-status").append $("<div>Creating playlist...</div>")

                PlaylistView playlist, files, playerInstance, songQueue, router, search

                $("#initial-status").remove()


RESIZE_UPDATE_DELAY = 500
SEARCH_UPDATE_PRELOAD_DELAY = 2000
CONVERSION_WAIT_TIMEOUT = 180 * 60 * 1000

