Opened 10 years ago
Closed 10 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 )
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)
Change History (3)
comment:1 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Milestone: | tbd → 1.9 |
Summary: | positioning tooltip-dialog at mouse-position → TooltipDialog: cannot position around a point |
Changed 10 years ago by
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.
Note: See
TracTickets for help on using
tickets.
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).