[1.3 with compatibility + more/measure]

Hi! Is it normal that Measure can't calculate width and totalWidth of
an <a> tag?

<a href="#" id="test" >test</a>

//(onDomReady)
var t = $('test').getComputedSize({ styles:['margin','padding'],
mode:'horizontal' }).totalWidth;
alert(t);//gives NaN in FF, only '16' in ie7 // no tests in other
browsers for now

Note: all the other dimensions are returned. Only width and totalWidth
aren't.

Well, I know <a> is not a block element, but it does have this problem
if I style it display:block.

Can you help me plese? I need this for an urgent project. Where am I
wrong? Or is it normal?

Thanks

Reply via email to