Improved setting of player width (fixes hud size)
This commit is contained in:
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…
Reference in New Issue
Block a user