i have set height using css (so that it will look same as text box)
myowntxtarea
{
height:18px;
min-height:18px;
max-height:300px!important;
}
but it set default height of 36px.
i saw code and i found beacuse of below we set height to 36
so i change it to as below and it work for me
line no. 61
var minheight = lineHeight * 2 > textareaHeight ? lineHeight * 2 : textareaHeight;
to
var minheight = textareaHeight;
and
line no. 74
var height = hasBoxModel ? cloneHeight + lineHeight + heightCompensation : cloneHeight + lineHeight;
to
var height = cloneHeight;
i think as per code we never use $textarea.height() any where to set text area height.
can you please fix this logic.
thanks.
Rajan J Dmello
i have set height using css (so that it will look same as text box)
myowntxtarea
{
height:18px;
min-height:18px;
max-height:300px!important;
}
but it set default height of 36px.
i saw code and i found beacuse of below we set height to 36
so i change it to as below and it work for me
line no. 61
var minheight = lineHeight * 2 > textareaHeight ? lineHeight * 2 : textareaHeight;
to
var minheight = textareaHeight;
and
line no. 74
var height = hasBoxModel ? cloneHeight + lineHeight + heightCompensation : cloneHeight + lineHeight;
to
var height = cloneHeight;
i think as per code we never use $textarea.height() any where to set text area height.
can you please fix this logic.
thanks.
Rajan J Dmello