In HTML if I want to know how many pixels there are in my browser window 
(even though the original philosphy of HTML was that I shouldn't ever have 
to know) I could do so sorta like this:
if (document.all){
   rightedge=document.body.clientWidth;
   bottomedge=document.body.clientHeight
  }else{
   rightedge=window.innerWidth;
   bottomedge=window.innerHeight;
}

this handled browser differences between IE and Netscapce/everybody else.

I have been able to use that to measure the size of HTML objects once 
rendered in the browser -- say a paragraph with an unknown amount of text in 
it. That way I can calculate onscreen real estate and allocate according to 
some pharaoh wisdom (as contrasted with oracle wisdom).

So, how do I do that in an SVG document? Neither clientWidth nor innerWidth 
appears as an attribute of any of the objects I can see in the SVG DOM.

I may simply be missing out on some attribute definitions in the viewport --  
so it's conceivable that I'm just missing some fundamental concept of SVG.

DD 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to