Permalink
Browse files

Refresh after every resize.

This was slightly broken in firefox.
  • Loading branch information...
1 parent f0665dd commit 92b74dd398ffee587298fcf5f2b6b50c8271d8ab @Raynes committed May 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 resources/public/js/create.js
@@ -103,11 +103,11 @@ $(document).ready(function() {
var currentHeight = $(window).height()
if (currentHeight > 600) {
$('.CodeMirror-scroll').height(currentHeight - 200)
+ editor.refresh()
}
}
$(window).resize(function() { setCodeHeight() })
setCodeHeight()
- editor.refresh()
})

0 comments on commit 92b74dd

Please sign in to comment.