Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Unified Diff: Source/devtools/front_end/elements/Spectrum.js

Issue 1318903007: Devtools UI: Fix tooltip issues (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Color picker tooltip placed above Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/elements/Spectrum.js
diff --git a/Source/devtools/front_end/elements/Spectrum.js b/Source/devtools/front_end/elements/Spectrum.js
index 0706e849ae3c31fc247a8a3aaba4e9468eaa47d8..37126258d6e6ef0435842be37885c61efeb049ff 100644
--- a/Source/devtools/front_end/elements/Spectrum.js
+++ b/Source/devtools/front_end/elements/Spectrum.js
@@ -229,7 +229,9 @@ WebInspector.Spectrum.prototype = {
element.style.background = String.sprintf("linear-gradient(%s, %s), url(Images/checker.png)", colorText, colorText);
if (animationDelay)
element.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 100, delay: animationDelay, fill: "backwards" });
- element.title = colorText;
+ var tooltipOptions = {};
+ tooltipOptions[WebInspector.Tooltip.Options.VerticalAlignmentTop] = WebInspector.Tooltip.Options.VerticalAlignmentTop;
+ WebInspector.Tooltip.install(element, colorText, "", tooltipOptions);
return element;
},

Powered by Google App Engine
This is Rietveld 408576698