generate_hints: special case for sizeless anchor
commit684095c241e072e0949ee4e96035c216165c1146
authorJohn Foerch <jjfoerch@earthlink.net>
Fri, 23 Sep 2011 21:04:08 +0000 (23 17:04 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Fri, 23 Sep 2011 21:07:40 +0000 (23 17:07 -0400)
treefe256b324d1552293c08344074429ba56742ad83
parent485d0fe59d46191a959a35fd46a4e0d155d5f3b7
generate_hints: special case for sizeless anchor

A sizeless anchor may have children at different coordinates from the
anchor itself.  Our test case was the paneltoggle2 widget on google maps
(which collapses the information panel).  We do a simple thing for these
cases, and just use the client-rect of the first child of the anchor that
has one.
modules/hints.js