1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00

#169 fix 移动端输入框高度

This commit is contained in:
mukaiu 2018-12-12 22:42:15 +08:00
parent a32f0828eb
commit 7538594caa
2 changed files with 10 additions and 6 deletions

View File

@ -73,7 +73,7 @@
elem.style.resize = 'none';
var textchange = function(){
changeTextArea(38);
changeTextArea(0);
}
var change = function () {
@ -83,7 +83,9 @@
addEvent('propertychange', textchange);
addEvent('input', textchange);
// addEvent('focus', changeTextArea);
addEvent('focus', function(){
changeTextArea(0);
});
change();
};
//多行文本框
@ -537,7 +539,7 @@
autoTextarea(document.getElementById("message"));// 调用
$('#message').click(function() {
wordinx = getPositionForTextArea(document.getElementById('message'));
closeFaceDialog(44);
closeFaceDialog(0);
});
var message = {

View File

@ -73,7 +73,7 @@
elem.style.resize = 'none';
var textchange = function(){
changeTextArea(38);
changeTextArea(0);
}
var change = function () {
@ -83,7 +83,9 @@
addEvent('propertychange', textchange);
addEvent('input', textchange);
// addEvent('focus', changeTextArea);
addEvent('focus', function(){
changeTextArea(0);
});
change();
};
//多行文本框
@ -404,7 +406,7 @@
autoTextarea(document.getElementById("message"));// 调用
$('#message').click(function() {
wordinx = getPositionForTextArea(document.getElementById('message'));
closeFaceDialog(44);
closeFaceDialog(0);
});
var message = {