mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
Merge branch '3.1.x'
This commit is contained in:
@@ -1032,7 +1032,7 @@ phpbb.resizeTextArea = function($items, options) {
|
|||||||
|
|
||||||
function autoResize(item) {
|
function autoResize(item) {
|
||||||
function setHeight(height) {
|
function setHeight(height) {
|
||||||
height += parseInt($item.css('height'), 10) - $item.height();
|
height += parseInt($item.css('height'), 10) - $item.innerHeight();
|
||||||
$item
|
$item
|
||||||
.css({ height: height + 'px', resize: 'none' })
|
.css({ height: height + 'px', resize: 'none' })
|
||||||
.addClass('auto-resized');
|
.addClass('auto-resized');
|
||||||
@@ -1051,7 +1051,7 @@ phpbb.resizeTextArea = function($items, options) {
|
|||||||
configuration.maxHeight
|
configuration.maxHeight
|
||||||
),
|
),
|
||||||
$item = $(item),
|
$item = $(item),
|
||||||
height = parseInt($item.height(), 10),
|
height = parseInt($item.innerHeight(), 10),
|
||||||
scrollHeight = (item.scrollHeight) ? item.scrollHeight : 0;
|
scrollHeight = (item.scrollHeight) ? item.scrollHeight : 0;
|
||||||
|
|
||||||
if (height < 0) {
|
if (height < 0) {
|
||||||
|
Reference in New Issue
Block a user