bigbluebutton-Github/labs/meteor-client/client/views/whiteboard/whiteboard.coffee

16 lines
501 B
CoffeeScript
Raw Normal View History

2014-08-20 04:22:29 +08:00
Template.whiteboard.rendered = ->
2014-08-21 05:17:18 +08:00
$(window).resize( ->
height = $('#whiteboard').height()
console.log "height = #{height}"
$('#whiteboard-paper').height((height-$("#whiteboard-navbar").height()-10)+'px')
2014-08-20 04:22:29 +08:00
2014-08-21 05:17:18 +08:00
# $('#svggroup').html('')
2014-08-20 04:22:29 +08:00
2014-08-21 05:17:18 +08:00
wpm = Template.slide.whiteboardPaperModel
wpm.clearShapes()
2014-08-22 02:06:34 +08:00
wpm._updateContainerDimensions()
2014-08-21 05:17:18 +08:00
wpm = Template.slide.whiteboardPaperModel
Template.slide.displaySlide(wpm)
Template.slide.manuallyDisplayShapes()
);