Hide legislation text when the full-screen editor is not active

This commit is contained in:
Martín González
2017-01-23 12:55:05 +01:00
parent 6c2e7fc3b1
commit dca072beaf
3 changed files with 33 additions and 15 deletions

View File

@@ -22,9 +22,9 @@ App.MarkdownEditor =
$(this).find('.fullscreen-toggle').on 'click', ->
$('.markdown-editor').toggleClass('fullscreen')
$('.fullscreen-container').toggleClass('medium-8', 'medium-12')
if $('.markdown-editor').hasClass('fullscreen')
$('.markdown-editor textarea').height($(window).height() - 100)
else
$('.markdown-editor textarea').height("10em")