Fixed the issue with whiteboard borders for the very first slide user sees after opening a new presentation.
This commit is contained in:
parent
6efe4ccfb5
commit
6566347ae1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user