Skip to content

Instantly share code, notes, and snippets.

@ronlobo
Created September 20, 2013 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronlobo/6634416 to your computer and use it in GitHub Desktop.
Save ronlobo/6634416 to your computer and use it in GitHub Desktop.
Check for contenteditable input and collapsable and resize nice scroll
$('#content').find('.collapse').on('shown', function() {
$("#content").getNiceScroll()[0].resize();
});
$('#content').find('.redactor_editor').on('input', function() {
$("#content").getNiceScroll()[0].resize();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment