jquery-highlighttextarea icon indicating copy to clipboard operation
jquery-highlighttextarea copied to clipboard

Using with jqueryautosize

Open mdgibbons opened this issue 11 years ago • 4 comments

I am trying to use your highlightTextarea with another jqueryplugin called "jqueryautosize" which dynamically autosizes the height based on the content in the textarea.

I know highlightTextarea is a bit picky about specifying height and I'm having some issues with incorrect highlighting positions when using both plugins together. I think it has to do with the scrollbar either appearing or not based on what is in the textbox. Do you have any suggestions on how I might get around this issue?

Thanks again for a great plugin. It really helps me.

mdgibbons avatar Mar 08 '13 15:03 mdgibbons

I added this code only and it works great

this.$el.bind('keyup change input', function () { that.$main.css({'height': that.$el.outerHeight(true)}); that.$container.css({'height': that.$el.height()}); })

It will track any change in textarea. and adjust container size.

andrejkaurin avatar Sep 09 '14 09:09 andrejkaurin

Thank u Andrej too, could you explain me better how to include your code? rob

robsql avatar Nov 05 '14 14:11 robsql

Is there any example?

Thanks!

elalemanyo avatar Dec 16 '14 14:12 elalemanyo

Hi, this is still a bug.

karthikb351 avatar Aug 21 '15 09:08 karthikb351