Made the whiteboard's height flexible depending on the presence of the slide navigation controllers.
This commit is contained in:
parent
71fe855fa7
commit
1fa46ab6dd
@ -166,6 +166,13 @@ Handlebars.registerHelper 'containerPosition', (section) ->
|
||||
else
|
||||
return ''
|
||||
|
||||
# vertically shrinks the whiteboard if the slide navigation controllers are present
|
||||
Handlebars.registerHelper 'whiteboardSize', (section) ->
|
||||
if BBB.isUserPresenter(getInSession('userId'))
|
||||
return 'presenter-whiteboard'
|
||||
else
|
||||
return 'viewer-whiteboard'
|
||||
|
||||
# transform plain text links into HTML tags compatible with Flash client
|
||||
@linkify = (str) ->
|
||||
www = /(^|[^\/])(www\.[\S]+($|\b))/img
|
||||
|
@ -75,10 +75,17 @@
|
||||
align-items: center;
|
||||
-webkit-align-items: center;
|
||||
-ms-align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.presenter-whiteboard {
|
||||
height: calc(~'100% - 40px');
|
||||
}
|
||||
|
||||
.viewer-whiteboard {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.fullscreenWhiteboardButton {
|
||||
float: right;
|
||||
padding: 0;
|
||||
|
@ -3,7 +3,7 @@
|
||||
{{#each getCurrentSlide}}
|
||||
{{> slide}}
|
||||
{{/each}}
|
||||
<div id="whiteboard-container">
|
||||
<div id="whiteboard-container" class="{{whiteboardSize}}">
|
||||
<div id="whiteboard-paper">
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user