I have page which contains textArea
's. If some of this textArea's contains too many text, user can't see all text (only if use scroll).
So i add js-function to make textArea height fit text inside :
window.addEventListener('resize', function(event) {
$('textarea').each(function() {
resizeTextArea(this);
});
});
But when i use window.print();
this behaviour doesn't apllied to textArea's.
So i have idea to add some eventListener to print
event, but my researching show that there are only some listeners for some browsers like IE or FireFox.
So is there any other solution that could help me print textArea's with fully visible text inside?
How textArea looks in print-window :
How textArea looks on page which is used for print :