Skip to content

not able to set my specific text area height to 18px. #5

@qacp14

Description

@qacp14

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions