Opened 15 years ago

Closed 14 years ago

#1236 closed enhancement (fixed)

"Sticky" tooltips

Reported by: jng Owned by: liuar
Priority: low Milestone:
Component: AJAX Viewer Version:
Severity: major Keywords:
Cc: External ID:

Description (last modified by jng)

Currently tooltips will always follow the mouse pointer, as a result if there is any interactive content inside the tooltip, it is impossible to actually interact with the said content using the mouse.

What the tooltip should ideally do is to stay at the position it was first displayed, and only disappear when the mouse pointer leaves the tooltip's bounding box. This is how it's done in Fusion and allows for clicking of any interactive content inside the tooltip.

Attachments (3)

stickytooltips.patch (1.5 KB ) - added by jng 14 years ago.
Patch to implement sticky tooltips
tooltip.png (83.9 KB ) - added by liuar 14 years ago.
fspreview.PNG (18.8 KB ) - added by jng 14 years ago.
Feature Source Preview of VotingDistricts

Download all attachments as: .zip

Change History (13)

comment:1 by jbirch, 15 years ago

Version: 2.2.0

Removing version from enhancement request

comment:2 by jng, 15 years ago

Description: modified (diff)
Summary: Allow the tooltip to stay at the same position instead of following the mouse pointer."Sticky" tooltips

comment:3 by jng, 14 years ago

Owner: set to jng

by jng, 14 years ago

Attachment: stickytooltips.patch added

Patch to implement sticky tooltips

comment:4 by tomfukushima, 14 years ago

Owner: changed from jng to liuar

Arthur, can you review this?

comment:5 by jng, 14 years ago

Is this patch good for submission?

comment:6 by liuar, 14 years ago

Hi jng,

the code looks good, but the result in my machine seems wrong.

please see the attached image.

Arthur

by liuar, 14 years ago

Attachment: tooltip.png added

comment:7 by jng, 14 years ago

Yes I see the problem too.

But the thing is I revert the ajaxmappane.templ back to the original current version in 2.2/trunk and I still get the same incorrect tooltip!

comment:8 by jng, 14 years ago

Okay, I've found the problem. The Districts layer of the Sheboygan dataset has the wrong label expression. It is using the expression:

concat('District ', Autogenerated_SDF_ID)

The Autogenerated_SDF_ID does not line up with the label, hence the disparate tooltips.

by jng, 14 years ago

Attachment: fspreview.PNG added

Feature Source Preview of VotingDistricts

comment:9 by liuar, 14 years ago

Yes, That's dataset's problem. I will submit the code on behalf of you. Thank you for this enhancement.

Arthur

comment:10 by liuar, 14 years ago

Resolution: fixed
Status: newclosed

Changeset [5305] by liuar

Note: See TracTickets for help on using tickets.