diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 5b6fa1aed5..016f423b7f 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -263,7 +263,7 @@ + rows="1" cols="60" style="resize: vertical;height:42px" class="form-control word-wrap"> @@ -1108,9 +1108,7 @@ }); $('textarea').on('keyup focus', function(e) { - while($(this).outerHeight() < this.scrollHeight + parseFloat($(this).css("borderTopWidth")) + parseFloat($(this).css("borderBottomWidth"))) { - $(this).height($(this).height()+1); - }; + $(this).height(0).height(this.scrollHeight-18); }); }