gregglind / firefox-pulse

Mozilla Public License 2.0
1 stars 0 forks source link

Self-help should tour hightlight on hover. #46

Open gregglind opened 10 years ago

gregglind commented 10 years ago
UITour = Components.utils.import("resource:///modules/UITour.jsm");
let highlight = document.getElementById("UITourHighlightContainer");
highlight.hidden = false;
highlight.openPopup($("#home-button")
//https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Method/openPopup
//https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/PopupGuide/Positioning

// or
highlight.openPopup($("#searchbar"),"leftcenter topleft",0,-highlight.getBoundingClientRect().height/2)
gregglind commented 10 years ago

Basically, can we do some coolness in saying where the thing would be affecting? I think we can.