Fixed the issue with whiteboard borders for the very first slide user sees after opening a new presentation.

This commit is contained in:
Maxim Khlobystov 2014-09-24 14:38:33 -07:00
parent 6efe4ccfb5
commit 6566347ae1

View File

@ -821,9 +821,9 @@ class @WhiteboardPaperModel
if originalWidth <= originalHeight
# square => boardHeight is the shortest side
adjustedWidth = boardHeight * originalWidth / originalHeight
$('#whiteboard-paper').attr('style', 'width:' + adjustedWidth + 'px')
$('#whiteboard-paper').width(adjustedWidth)
@addImageToPaper(data, adjustedWidth, boardHeight)
else
adjustedHeight = boardWidth * originalHeight / originalWidth
$('#whiteboard-paper').attr('style', 'height:' + adjustedHeight + 'px')
$('#whiteboard-paper').height(adjustedHeight)
@addImageToPaper(data, boardWidth, adjustedHeight)