aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets/javascript
diff options
context:
space:
mode:
authorcyberalien <cyberalien@gmail.com>2016-02-08 16:47:04 +0200
committercyberalien <cyberalien@gmail.com>2016-02-08 16:47:04 +0200
commit147f92971399ef79c421565de927435e7770ee84 (patch)
tree2260a82051a57b652b0f1b2ce7a41d0d176f048b /phpBB/assets/javascript
parent663ee34f66d6ded7eb3c5cc81d1d1df32a31966f (diff)
downloadforums-147f92971399ef79c421565de927435e7770ee84.tar
forums-147f92971399ef79c421565de927435e7770ee84.tar.gz
forums-147f92971399ef79c421565de927435e7770ee84.tar.bz2
forums-147f92971399ef79c421565de927435e7770ee84.tar.xz
forums-147f92971399ef79c421565de927435e7770ee84.zip
[ticket/14467] Fix height calculation in autoResize
PHPBB3-14467
Diffstat (limited to 'phpBB/assets/javascript')
-rw-r--r--phpBB/assets/javascript/core.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index 228230ff71..4efebcacd1 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -1029,7 +1029,7 @@ phpbb.resizeTextArea = function($items, options) {
function autoResize(item) {
function setHeight(height) {
- height += parseInt($item.css('height'), 10) - $item.height();
+ height += parseInt($item.css('height'), 10) - $item.innerHeight();
$item
.css({ height: height + 'px', resize: 'none' })
.addClass('auto-resized');
@@ -1048,7 +1048,7 @@ phpbb.resizeTextArea = function($items, options) {
configuration.maxHeight
),
$item = $(item),
- height = parseInt($item.height(), 10),
+ height = parseInt($item.innerHeight(), 10),
scrollHeight = (item.scrollHeight) ? item.scrollHeight : 0;
if (height < 0) {