Closed cantbesure1 closed 7 years ago
Mhmm let me have a thorough look at this, I've tried to tackle this same issue before it caused more problem than good.
the solution I found was to create a temporary div, with css emulating the actual textarea (given that you cannot measure the height of a textarea directly). It's probably not amazing on resources, but given that it triggers only on a specific function and not every update, the difference is marginal. Alternatively, it could not work on other operating systems, in which case I'll have to rethink the entire thing.
also, I commited a few smaller changes (not bugfixes this time) changes:
Okay :) That's perfect, quite elegant solution too!
changes:
go_to_fromto
andreplace_line
functions.This was initially intended to just be the first change, but I noticed the second when I was about to commit, thinking it would be a small change. It took 6 hours. I pray I didn't miss a bug.