[
https://issues.apache.org/jira/browse/AIRFLOW-4357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17089732#comment-17089732
]
ASF GitHub Bot commented on AIRFLOW-4357:
-----------------------------------------
ryanahamilton commented on a change in pull request #8269:
URL: https://github.com/apache/airflow/pull/8269#discussion_r413037526
##########
File path: airflow/www/templates/airflow/dags.html
##########
@@ -554,5 +552,33 @@ <h2>DAGs</h2>
$(".loading-task-stats").remove();
$(".loading-dag-stats").remove();
}
+
+ function showSvgTooltip(text, offsetTop, offsetLeft) {
+ var tip = $('#svg-tooltip');
+ tip.children('.tooltip-inner').text(text);
+ var centeringOffset = tip.width() / 2;
+ tip.css({
+ "display": "block",
+ "left": offsetLeft + 12.5 - centeringOffset + 'px',// 12.5 == half of
circle width
+ "top": offsetTop - 25 + 'px'// 25 == position above circle
+ });
+ }
+
+ function hideSvgTooltip() {
+ $('#svg-tooltip').css('display', 'none');
+ }
+
+ $(window).on('load', function() {
+ $('body').on('mouseover', '.has-svg-tooltip', function(e) {
+ var elem = e.target;
+ var text = elem.getAttribute('title');
+ var circ = document.getElementById(elem.id).getBoundingClientRect();
Review comment:
Updated.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Tool tip offset when using RBAC
> -------------------------------
>
> Key: AIRFLOW-4357
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4357
> Project: Apache Airflow
> Issue Type: Bug
> Components: webserver
> Affects Versions: 1.10.2, 1.10.3
> Environment: Fedora 29 with Python 3.5.6 from conda
> Reporter: Charles Surett
> Assignee: Ash Berlin-Taylor
> Priority: Minor
> Labels: rbac, web
> Fix For: 1.10.11
>
> Attachments: Expected Behavior.png, Issue.png, installed-packages.txt
>
>
> Tool tips are offset when the page is scrolled when using the RBAC web UI
>
> See attached images for more details.
>
> It seems to be related to
> [https://github.com/twbs/bootstrap/blob/v3.3.7/js/tooltip.js#L367-L372]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)