Improved setting of player width (fixes hud size)

openid
Marcin Kulik 12 years ago
parent 2814f92074
commit 0e9287ea85

@ -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')

Loading…
Cancel
Save