1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-28 06:07:40 +00:00

Revert "Fix popup position if popup is triggered from within an offsetParent element (#6887)"

This reverts commit 5b85786f73.
This commit is contained in:
jeremy@jermolene.com
2022-10-22 13:22:15 +01:00
parent 5b85786f73
commit b9d27e9fd5
13 changed files with 34 additions and 228 deletions

View File

@@ -191,7 +191,7 @@ DynannotateWidget.prototype.applyAnnotations = function() {
"tv-selection-posy": (bounds.top).toString(),
"tv-selection-width": (bounds.width).toString(),
"tv-selection-height": (bounds.height).toString(),
"tv-selection-coords": $tw.popup.buildCoordinates($tw.popup.coordinatePrefix.csOffsetParent,bounds)
"tv-selection-coords": "(" + bounds.left + "," + bounds.top + "," + bounds.width + "," + bounds.height + ")"
});
if(self.hasAttribute("popup")) {
$tw.popup.triggerPopup({