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”