On Friday 21 September 2001 14:08, Keiron Liddle wrote:
> On Wed, 19 Sep 2001 14:13:25 Thierry Kormann wrote:
> > In order to properly implement getWidth (which was not the case in the
> > method
> > I were using) - you can have a look at the ImageTranscoder.
> >
> > The ImageTranscoder handles correctly the width and height attributes on
> > the
> > outermost svg element (thoses attributes are in fact not required).
>
> The only problem with this is that the root graphics node needs to be built
> twice.
??? I don't get that. In order to compute the width and height attributes,
you need:
root.getAttributeNS(svgNamespaceURI, "width")
root.getAttributeNS(svgNamespaceURI, "height");
and the notion of a user agent.
If one of those attribute is not defined, the value is 100%.
100% means: the 'default size of the user agent' - at least the area the user
agent wants to allocate for that svg document.
Thierry.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]