If you potentially have alot of text in a small area it can be quite annoying to scroll through such a small window like this…
With this small snippet of JS the height changes according to the content inside as you type to this…
Javascript
$(document).on('knack-scene-render.any', function (page) {
$("textarea").on('input', function() {
var scroll_height = $("textarea").get(0).scrollHeight;
$("textarea").css('height', scroll_height + 'px');
});
});
“Psst… I’ve got something really big brewing, and can hardly contain my excitement! I’m thrilled to announce that the new platform coming dedicated to giving us all the marketplace to share knack code & tutorials. Stay tuned”
Hey everyone, I hope you’ve been enjoying these code snippets. I wanted to let you know that all of my code is now available on my new platform, Appknowledged. Appknowledged has taken over from KnackMods. I encourage all of you to sign up—it’s completely free—and you’ll have access to all of my free content.