Fossil SCM

Copy button comes before the hyperlink in tooltips.

drh 2019-06-10 01:32 trunk
Commit 9a5169f58581cc0d264fd617e8556def4e7a039ab628a3b7d6657265afac13dd
1 file changed +2 -1
+2 -1
--- src/graph.js
+++ src/graph.js
@@ -654,11 +654,12 @@
654654
}
655655
tooltipObj.style.borderColor =
656656
tooltipObj.style.color = s.getPropertyValue('color')
657657
tooltipObj.style.visibility = "hidden"
658658
tooltipObj.innerHTML = html
659
- tooltipObj.appendChild(makeCopyButton("tooltip-link",true,0));
659
+ tooltipObj.insertBefore(makeCopyButton("tooltip-link",0,0),
660
+ tooltipObj.childNodes[1]);
660661
tooltipObj.style.display = "inline"
661662
tooltipObj.style.position = "absolute"
662663
var x = tooltipInfo.posX + 4 + window.pageXOffset
663664
- absoluteX(tooltipObj.offsetParent)
664665
tooltipObj.style.left = x+"px"
665666
--- src/graph.js
+++ src/graph.js
@@ -654,11 +654,12 @@
654 }
655 tooltipObj.style.borderColor =
656 tooltipObj.style.color = s.getPropertyValue('color')
657 tooltipObj.style.visibility = "hidden"
658 tooltipObj.innerHTML = html
659 tooltipObj.appendChild(makeCopyButton("tooltip-link",true,0));
 
660 tooltipObj.style.display = "inline"
661 tooltipObj.style.position = "absolute"
662 var x = tooltipInfo.posX + 4 + window.pageXOffset
663 - absoluteX(tooltipObj.offsetParent)
664 tooltipObj.style.left = x+"px"
665
--- src/graph.js
+++ src/graph.js
@@ -654,11 +654,12 @@
654 }
655 tooltipObj.style.borderColor =
656 tooltipObj.style.color = s.getPropertyValue('color')
657 tooltipObj.style.visibility = "hidden"
658 tooltipObj.innerHTML = html
659 tooltipObj.insertBefore(makeCopyButton("tooltip-link",0,0),
660 tooltipObj.childNodes[1]);
661 tooltipObj.style.display = "inline"
662 tooltipObj.style.position = "absolute"
663 var x = tooltipInfo.posX + 4 + window.pageXOffset
664 - absoluteX(tooltipObj.offsetParent)
665 tooltipObj.style.left = x+"px"
666

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button