Разлика между версии на „МедияУики:Gadget-Quick diff.js“

offset() is more reliable after show()
(Recent Changes vertical positioning fix with offset())
(offset() is more reliable after show())
 
viewDiff: function(content, $link)
{
var $viewWin = this.getViewWindow().offset({top: $link.offset().top + 30})
.find("#quickdiff-content").html(content)
.end().show().offset({top: $link.offset().top + 30});
 
if (mw.ext && mw.ext.Patroller) {
new mw.ext.Patroller.bulk(new mw.ext.Patroller.quick()).enable($link[0].href);