Improved setting of player width (fixes hud size)

This commit is contained in:
Marcin Kulik 2012-05-27 11:34:29 +02:00
parent 2814f92074
commit 0e9287ea85

View File

@ -25,8 +25,8 @@ class AsciiIo.Renderer.Pre extends AsciiIo.Renderer.Base
width = @cols * @cellWidth
height = @lines * @cellHeight
@$el.parent('.player').css(width: width + 'px')
@$el.css(width: width + 'px', height: height + 'px')
@$el.parent('.player').css(width: @$el.outerWidth() + 'px')
render: (changes, cursorX, cursorY) ->
@$el.find('.cursor').removeClass('cursor')