Index: Source/devtools/front_end/emulation/MediaQueryInspector.js |
diff --git a/Source/devtools/front_end/emulation/MediaQueryInspector.js b/Source/devtools/front_end/emulation/MediaQueryInspector.js |
index 6624d38a1b3c416f3249bc8b0f042e43c7dc6c91..46ad19c93da694dae026f76c120b01b4b51fbb4a 100644 |
--- a/Source/devtools/front_end/emulation/MediaQueryInspector.js |
+++ b/Source/devtools/front_end/emulation/MediaQueryInspector.js |
@@ -341,7 +341,10 @@ WebInspector.MediaQueryInspector.prototype = { |
var labelContainer = markerElement.createChild("div", "media-inspector-marker-label-container media-inspector-marker-label-container-right"); |
labelContainer.createChild("span", "media-inspector-marker-label " + labelClass).textContent = model.maxWidthExpression().value() + model.maxWidthExpression().unit(); |
} |
- markerElement.title = model.mediaText(); |
+ var tooltipOptions = {}; |
+ tooltipOptions[WebInspector.Tooltip.Options.VerticalAlignmentTop] = true; |
+ tooltipOptions[WebInspector.Tooltip.Options.HorizontalAlignUnderCursor] = true; |
+ WebInspector.Tooltip.install(markerElement, model.mediaText(), "", tooltipOptions); |
return markerElement; |
}, |