• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebView/DOM tree link?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebView/DOM tree link?


  • Subject: Re: WebView/DOM tree link?
  • From: George Orthwein <email@hidden>
  • Date: Sun, 21 May 2006 22:19:53 -0400

Did you see this thread:
http://lists.apple.com/archives/webkitsdk-dev/2006/Mar/msg00035.html

It looks like clientHeight and clientWidth would give the size, but the poster had troubles with the position.

I was looking around a bit and this doesn't help with position, but an alternative to width/height looks like offsetWidth/offsetHeight. It appears to work in Safari:
http://www.quirksmode.org/dom/getstyles.html


Strangely, I can't find any of these in the Webkit headers....

I suppose you could also try inserting a div and setting its position and size to be equal to the selected node. You wouldn't need to know the exact size in that case.

George
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >WebView/DOM tree link? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Instance method declaration
  • Next by Date: Re: Problem connecting to Oracle 10g via 'Instant Client's dylibs'
  • Previous by thread: WebView/DOM tree link?
  • Next by thread: Re: Trouble using ANY operator in an NSArrayController search predicate
  • Index(es):
    • Date
    • Thread