Fixed : triggering window resize event when loading view unveils, in case window was resized before then and messed up our initial spell view height.

This commit is contained in:
Nick Winter 2015-04-18 16:33:40 -07:00
parent d4068cc879
commit 485718b6e3

View file

@ -352,6 +352,7 @@ module.exports = class PlayLevelView extends RootView
@realTimeMultiplayerContinueGame @options.realTimeMultiplayerSessionID
# TODO: Is it possible to create a Mongoose ObjectId for 'ls', instead of the string returned from get()?
application.tracker?.trackEvent 'Started Level', category:'Play Level', levelID: @levelID, ls: @session?.get('_id') unless @observing
$(window).trigger 'resize'
playAmbientSound: ->
return if @destroyed