bigbluebutton-Github/labs/meteor-client/client/views/whiteboard/whiteboard.coffee
Anton Georgiev 078fbc938e minor fix
2014-08-21 18:06:34 +00:00

16 lines
501 B
CoffeeScript
Executable File

Template.whiteboard.rendered = ->
$(window).resize( ->
height = $('#whiteboard').height()
console.log "height = #{height}"
$('#whiteboard-paper').height((height-$("#whiteboard-navbar").height()-10)+'px')
# $('#svggroup').html('')
wpm = Template.slide.whiteboardPaperModel
wpm.clearShapes()
wpm._updateContainerDimensions()
wpm = Template.slide.whiteboardPaperModel
Template.slide.displaySlide(wpm)
Template.slide.manuallyDisplayShapes()
);