Opened 6 years ago

Closed 6 years ago

#16227 closed defect (fixed)

TooltipDialog: cannot position around a point

Reported by: gerhard presser Owned by: bill
Priority: undecided Milestone: 1.9
Component: Dijit Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

causes 'connect-arrow' to be displayed at wrong position.

the problem is, that at TooltipDialog.orient, the value for 'aroundCorner' is undefined.

I do something like:

var tlp = new TooltipDialog({...});
...
popup.open({
popup:tlp,
orient:"R",
x:mouseX,
y:mouseY
});

regards

Attachments (1)

tooltipAt.html (612 bytes) - added by bill 6 years ago.
Test case. Note that during layout, popup.open() isn't calling orient() at all (although it should be). The later call to orient (with the missing aroundCorner) comes when TooltipDialog?.onOpen() is called after layout is finished.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 6 years ago by bill

Description: modified (diff)
Milestone: tbd1.9
Summary: positioning tooltip-dialog at mouse-positionTooltipDialog: cannot position around a point

Hmm, that's true, the orient() method is only designed for positioning a drop down, i.e. when place.around(), not place.at(), is called. I guess in this case we need to treat this like a 0x0 aroundNode positioned at (mouseX, mouseY).

Changed 6 years ago by bill

Attachment: tooltipAt.html added

Test case. Note that during layout, popup.open() isn't calling orient() at all (although it should be). The later call to orient (with the missing aroundCorner) comes when TooltipDialog?.onOpen() is called after layout is finished.

comment:2 Changed 6 years ago by bill

Resolution: fixed
Status: newclosed

In [29889]:

Make TooltipDialog work with popup.at(), fixes #16227 !strict.

Note: See TracTickets for help on using tickets.