MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
Only remove the css rule after the reflow ahppened
(Fixes tooltips on firefox for real now)
 
(Only remove the css rule after the reflow ahppened)
Line 5: Line 5:
if($(".tooltip").length) {
if($(".tooltip").length) {
   document.styleSheets[0].insertRule(".tooltiptext {top:0}");
   document.styleSheets[0].insertRule(".tooltiptext {top:0}");
   document.styleSheets[0].deleteRule(0);
   window.requestAnimationFrame(function() {
    document.styleSheets[0].deleteRule(0);
  })
}
}
System Operators, Wiki Team
278

edits

Navigation menu