Hi Michael,

"Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on 
04/12/2007 04:04:09 PM:

> I?m trying to add tooltips and they work for most elements. 
> Unfortuantely, my primary purpose is for text and I don?t seem to be
> getting the tooltip to display when I hover the mouse over text:

   Your example worked for me in Squiggle...

> <g svgx:name="default_layer" svgx:type="layer"
>        id="SVGWB-723C3643-74A9-995B-FFDF-1DDB033A46B8" style="display: 
block"
>        pointer-events="none">
>         <rect x="64" y="157"
>               transform="matrix(1.4128035558031693, 0.0, 0.0, 1.
> 4128035558031693, 0.0, -188.0794677734375)"
>               fill-opacity="1" fill="gray" width="196" height="141"
>               id="SVGWB-2EA378C8-70AF-CDFA-2DA7-B5BF4CA16A02" 
stroke="black"
>               stroke-opacity="1" stroke-width="1" 
pointer-events="visible">
>             <desc id="SVGWB-AC020D00-4691-13EB-EA48-EF19CD5E4672">
>                 sdfgdsfgfd
>             </desc>
>         </rect>
>         <text fill-opacity="1" stroke="none"
>               id="SVGWB-CA0080D5-EBD8-D14E-B5E7-4283A5238185"
>               style="font-family: sans-serif; font-weight: normal; 
> font-style: normal; font-size: 24"
>               svgx:type="text"
>               transform="matrix(1.4128035558031693, 0.0, 0.0, 1.
> 4128035558031693, 0.0, -188.0794677734375)"
>               stroke-opacity="1" fill="black" svgx:lang="en" 
stroke-width="1"
>               pointer-events="visible" x="95" y="376">
>             Hello
>             <desc id="SVGWB-2C452FC2-C80C-656F-30D7-A9723DF1FFC0">
>                 Bonjour
>             </desc>
>         </text>
>     </g>
> 
> The tooltip for the <rect> element shows properly on a mouse-over on
> the JSVGCanvas.  The tooltip for the <text> element does not.  Any 
> reasons why?  Is there a difference between using <desc> and <title>
> for tooltips?
> 
> Michael Bishop

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to