mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[ticket/10741] Fix for browser-specific resizing of textarea
Disable browser-specific resizing only after textarea has been resized Enable browser-specific resizing after script resizing has been reset PHPBB3-10741
This commit is contained in:
parent
67f0e19128
commit
cbb9f084fc
@ -600,7 +600,7 @@ phpbb.resizeTextArea = function(items) {
|
||||
var $item = $(item);
|
||||
if ($item.hasClass('auto-resized'))
|
||||
{
|
||||
$(item).css('height', '').removeClass('auto-resized');
|
||||
$(item).css({height: '', resize: ''}).removeClass('auto-resized');
|
||||
configuration.resetCallback.call(item, $item);
|
||||
}
|
||||
};
|
||||
@ -609,7 +609,7 @@ phpbb.resizeTextArea = function(items) {
|
||||
{
|
||||
function setHeight(height)
|
||||
{
|
||||
$item.css('height', height + 'px').addClass('auto-resized');
|
||||
$item.css({height: height + 'px', resize: 'none'}).addClass('auto-resized');
|
||||
configuration.resizeCallback.call(item, $item);
|
||||
}
|
||||
|
||||
@ -640,7 +640,7 @@ phpbb.resizeTextArea = function(items) {
|
||||
$(this).each(function() {
|
||||
autoResize(this);
|
||||
});
|
||||
}).css('resize', 'none').change();
|
||||
}).change();
|
||||
|
||||
$(window).resize(function() {
|
||||
items.each(function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user