flaviusmatis / flaviusmatis/flexibleArea.js
not able to set my specific text area height to 18px.
- Dominant language
- JavaScript
- Stars
- 34
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the plugin code around lines 61 and 74, using the reported minheight and height calculations as entry points. Reproduce the textarea with an 18px height and verify that the plugin respects the requested height while still expanding to fit content, then check the related behavior in a browser.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100