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

17 lines
831 B
CoffeeScript
Raw Normal View History

@redrawWhiteboard = () ->
if window.matchMedia('(orientation: portrait)').matches
$('#whiteboard').height($('#whiteboard').width() * getInSession('slideOriginalHeight') / getInSession('slideOriginalWidth') + $('#whiteboard-navbar').height() + 20)
else if $('#whiteboard').height() isnt $('#users').height() + 10
$('#whiteboard').height($('#users').height() + 10)
adjustedDimensions = scaleSlide(getInSession('slideOriginalWidth'), getInSession('slideOriginalHeight'))
wpm = whiteboardPaperModel
wpm.clearShapes()
wpm.clearCursor()
manuallyDisplayShapes()
wpm.scale(adjustedDimensions.width, adjustedDimensions.height)
wpm.createCursor()
2015-01-22 04:30:57 +08:00
Template.whiteboard.rendered = ->
if window.matchMedia('(orientation: landscape)').matches
$("#whiteboard").height(($("#chat").height()) + 'px')