javascript - Resize text simultaneously while resizing textarea -


Resizing the texture, resizing the text simultaneously. Below is my code below is my jQuery, what do I have to do with the click function is different? Not sure though that I would like some advice in deciding this.

JSField: (JSFIDID was not allowed to post here, here it is that http: // jsfiddle.net/mr_eirenaios/TT92Q/8/)

  $ ("# ATx"). Click (function () {$ ("# dvtx"). Enclosed ('& lt; textarea rows = "3" id = "ateext"> type here & lt; / textarea & gt;');} ); Var diagonal SCL; Var txSiz; Resizeable ({resizeable}: $ {function () (resizeable) (resize) ('resize', '#text', function: (Event, UI) {DIAGONAL SCL = DIRCANSWITS (); TxSIS = ParsInt ($ ("#text" ) .css ("font-size");}, resize: function (E, UI) {var diagon SCLN = dicard squares (); var proportion = diagonal SCLY / diagonal SCL; $ ("#ttext"). ("Font-size", txsys + proportion * 3);}});}); Function Diagonal Switches () {var contentWidth = $ ("#ttext"). Width (); Var content = $ ("# aText") Height (); Return Contentwidth * ContentWide + Content Hijing * ContentHight; } I have done this in a new bela check i  resizing element i < Stop the event on  and I think the font you're using to calculate gives a big value and is not correct, so do some other calculations for the font size and make small changes in it Code is 


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -