javascript - how to find text cut off while resizing td element -


i have resize option in table. when resize, cuts off text. how find size @ text begins cut off..

enter image description here

when resize header happensenter image description here

the easiest way multiply length of string point size times 1.25. should give how wide areas should title , not text goes slots.

so strlen(text)*fontpointsize*1.25

also - yo yo has said - need specify width of field. so:

<td width='123px'>title</td> 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -