Could someone help me out with a few lines of (Cocoa) code that
shows how to get at the actual (rendered) size of a DOM object?
No one? Please?
It seems to me that the W3C DOM is really just a model and has no
connection at all to the actual rendering.
Also, clientWidth and friends seem to be part of Microsofts IE DHTML
object model only and are therefore absent in Apple's implementation
of the W3C DOM. (http://developer.mozilla.org/en/docs/
DOM:element.clientWidth)
So how may I find out at what size an element is actually rendered?
But this will always return the height like it is defined in the CSS
- no matter how big the element is actually rendered.
On a side note, I thought - (float)getFloatValue:(unsigned short)
unitType; was supposed to return the specified value in the unit
passed in by unitType. (http://www.w3.org/TR/2000/REC-DOM-Level-2-
Style-20001113/css.html#CSS-CSSStyleDeclaration)
But I get always the same value, no matter what unit I specify.
I *really* need to know the size of a specific (text) element, to be
able to build my pages correctly. And ideally in a unit other than
pixels ...
Any help would be appreciated.
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden