Fixed the mechanism of toggling the chat bar and made sure user is unable to resize the whiteboard when the chat is closed.

This commit is contained in:
Maxim Khlobystov 2015-08-19 12:47:00 -04:00
parent f5fe166b50
commit 8b06d43aec
2 changed files with 5 additions and 1 deletions

View File

@ -201,8 +201,10 @@ Handlebars.registerHelper 'whiteboardSize', (section) ->
setInSession "display_chatbar", !getInSession "display_chatbar"
if !getInSession("display_chatbar")
$('#whiteboard').css('width', '100%')
$('#whiteboard .ui-resizable-handle').css('display', 'none')
else
$('#whiteboard').css('width', '')
$('#whiteboard .ui-resizable-handle').css('display', '')
setTimeout redrawWhiteboard, 0
@toggleMic = (event) ->

View File

@ -58,7 +58,9 @@
<div id="panels">
<div class="shield"></div>
{{> whiteboard id="whiteboard" name="whiteboard"}}
{{> chatbar id="chat" title="Chat" name="chatbar"}}
{{#if getInSession "display_chatbar"}}
{{> chatbar id="chat" title="Chat" name="chatbar"}}
{{/if}}
</div>
{{> modals}}
</div>