Fix mw.notify not being visible if first loaded when scrolled down
authorMatt Russell <public@matt-russell.com>
Mon, 5 Oct 2015 04:00:43 +0000 (15:00 +1100)
committerMatt Russell <public@matt-russell.com>
Mon, 5 Oct 2015 04:12:35 +0000 (15:12 +1100)
commitb76f0c0571451672858735fa97e6980dca1741d8
tree225304452611740a9480fd9af6078783ca31fcf4
parentd21c75418d856b06dcb6307c6f01ddda40f30b3c
Fix mw.notify not being visible if first loaded when scrolled down

This regression was caused by using $().offset() on a hidden element, which returns
the current scroll position making the script think the notification area starts
where the scroll position is, so it would not become fixed until you scroll further.

Bug: T114606
Change-Id: Ice62cf3ea7b1a29e33baeca05d1a088a68c9a785
resources/src/mediawiki/mediawiki.notification.js