Opened 8 years ago

Closed 8 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 8 years ago.
Patch to implement sticky tooltips
tooltip.png (83.9 KB) - added by liuar 8 years ago.
fspreview.PNG (18.8 KB) - added by jng 8 years ago.
Feature Source Preview of VotingDistricts?

Download all attachments as: .zip

Change History (13)

comment:1 Changed 8 years ago by jbirch

Version: 2.2.0

Removing version from enhancement request

comment:2 Changed 8 years ago by jng

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

comment:3 Changed 8 years ago by jng

Owner: set to jng

Changed 8 years ago by jng

Attachment: stickytooltips.patch added

Patch to implement sticky tooltips

comment:4 Changed 8 years ago by tomfukushima

Owner: changed from jng to liuar

Arthur, can you review this?

comment:5 Changed 8 years ago by jng

Is this patch good for submission?

comment:6 Changed 8 years ago by liuar

Hi jng,

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

please see the attached image.

Arthur

Changed 8 years ago by liuar

Attachment: tooltip.png added

comment:7 Changed 8 years ago by jng

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 Changed 8 years ago by jng

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.

Changed 8 years ago by jng

Attachment: fspreview.PNG added

Feature Source Preview of VotingDistricts?

comment:9 Changed 8 years ago by liuar

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

Arthur

comment:10 Changed 8 years ago by liuar

Resolution: fixed
Status: newclosed

Changeset [5305] by liuar

Note: See TracTickets for help on using tickets.