D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] javascript event

 

Simon Waters wrote:
tom wrote:
I've got a source code editor written in javascript that relies on
calculating the size of the font .... a lot.
Does anyone know the vent to capture so that when someone modiifes the
CSS or (in the case of FFox) does CTRL + or - to change the font size.

Historically folk created custom events for this, so I assume there
isn't a specific event, although that could have changed.

http://www.alistapart.com/articles/fontresizing/


My JS recalculates the text size at the start of everything - I've been using Firebug profiling and trying to speed things up a bit and the size recalulate came out quite high - it's something the browser notices so I was hong for an event somewhere. I'll try mozilla - quite happy to right just for FF and let anyone else sort it out for other browsers...
Tom te tom te tom


--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html