Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
05e19ddd
Commit
05e19ddd
authored
Nov 28, 2019
by
Carsten Rose
Browse files
Merge branch 'B9638-TextareaSizing' into 'master'
Now also listens for paste See merge request
!205
parents
0f2a10f0
d2121bbe
Pipeline
#2793
passed with stages
in 2 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/Main.js
View file @
05e19ddd
...
...
@@ -48,7 +48,7 @@ $(document).ready( function () {
});
});
$
(
'
.qfq-auto-grow
'
).
on
(
'
input
'
,
function
()
{
$
(
'
.qfq-auto-grow
'
).
on
(
'
input
paste
'
,
function
()
{
var
newHeight
=
$
(
this
).
prop
(
'
scrollHeight
'
);
var
maxHeight
=
$
(
this
).
data
(
'
max-height
'
)
||
0
;
if
(
$
(
this
).
outerHeight
()
<
newHeight
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment