Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
5f72bfe6
Commit
5f72bfe6
authored
Dec 04, 2019
by
Marcus Andersson
Committed by
Torkel Ödegaard
Dec 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GraphTooltip: added boundaries so we never render tooltip outside window. (#20874)
parent
ad33d95d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
public/app/core/jquery_extended.ts
+5
-2
No files found.
public/app/core/jquery_extended.ts
View file @
5f72bfe6
...
@@ -42,8 +42,11 @@ $.fn.place_tt = (() => {
...
@@ -42,8 +42,11 @@ $.fn.place_tt = (() => {
width
=
$tooltip
.
outerWidth
(
true
);
width
=
$tooltip
.
outerWidth
(
true
);
height
=
$tooltip
.
outerHeight
(
true
);
height
=
$tooltip
.
outerHeight
(
true
);
$tooltip
.
css
(
'left'
,
x
+
opts
.
offset
+
width
>
$win
.
width
()
?
x
-
opts
.
offset
-
width
:
x
+
opts
.
offset
);
const
left
=
x
+
opts
.
offset
+
width
>
$win
.
width
()
?
x
-
opts
.
offset
-
width
:
x
+
opts
.
offset
;
$tooltip
.
css
(
'top'
,
y
+
opts
.
offset
+
height
>
$win
.
height
()
?
y
-
opts
.
offset
-
height
:
y
+
opts
.
offset
);
const
top
=
y
+
opts
.
offset
+
height
>
$win
.
height
()
?
y
-
opts
.
offset
-
height
:
y
+
opts
.
offset
;
$tooltip
.
css
(
'left'
,
left
>
0
?
left
:
0
);
$tooltip
.
css
(
'top'
,
top
>
0
?
top
:
0
);
});
});
};
};
})();
})();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment