mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
#169 fix 移动端输入框高度
This commit is contained in:
parent
a32f0828eb
commit
7538594caa
@ -73,7 +73,7 @@
|
|||||||
elem.style.resize = 'none';
|
elem.style.resize = 'none';
|
||||||
|
|
||||||
var textchange = function(){
|
var textchange = function(){
|
||||||
changeTextArea(38);
|
changeTextArea(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
var change = function () {
|
var change = function () {
|
||||||
@ -83,7 +83,9 @@
|
|||||||
|
|
||||||
addEvent('propertychange', textchange);
|
addEvent('propertychange', textchange);
|
||||||
addEvent('input', textchange);
|
addEvent('input', textchange);
|
||||||
// addEvent('focus', changeTextArea);
|
addEvent('focus', function(){
|
||||||
|
changeTextArea(0);
|
||||||
|
});
|
||||||
change();
|
change();
|
||||||
};
|
};
|
||||||
//多行文本框
|
//多行文本框
|
||||||
@ -537,7 +539,7 @@
|
|||||||
autoTextarea(document.getElementById("message"));// 调用
|
autoTextarea(document.getElementById("message"));// 调用
|
||||||
$('#message').click(function() {
|
$('#message').click(function() {
|
||||||
wordinx = getPositionForTextArea(document.getElementById('message'));
|
wordinx = getPositionForTextArea(document.getElementById('message'));
|
||||||
closeFaceDialog(44);
|
closeFaceDialog(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
var message = {
|
var message = {
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
elem.style.resize = 'none';
|
elem.style.resize = 'none';
|
||||||
|
|
||||||
var textchange = function(){
|
var textchange = function(){
|
||||||
changeTextArea(38);
|
changeTextArea(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
var change = function () {
|
var change = function () {
|
||||||
@ -83,7 +83,9 @@
|
|||||||
|
|
||||||
addEvent('propertychange', textchange);
|
addEvent('propertychange', textchange);
|
||||||
addEvent('input', textchange);
|
addEvent('input', textchange);
|
||||||
// addEvent('focus', changeTextArea);
|
addEvent('focus', function(){
|
||||||
|
changeTextArea(0);
|
||||||
|
});
|
||||||
change();
|
change();
|
||||||
};
|
};
|
||||||
//多行文本框
|
//多行文本框
|
||||||
@ -404,7 +406,7 @@
|
|||||||
autoTextarea(document.getElementById("message"));// 调用
|
autoTextarea(document.getElementById("message"));// 调用
|
||||||
$('#message').click(function() {
|
$('#message').click(function() {
|
||||||
wordinx = getPositionForTextArea(document.getElementById('message'));
|
wordinx = getPositionForTextArea(document.getElementById('message'));
|
||||||
closeFaceDialog(44);
|
closeFaceDialog(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
var message = {
|
var message = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user