mw.notification: Fix incorrect initial offset
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 24 Jul 2013 17:56:06 +0000 (19:56 +0200)
committerKrinkle <krinklemail@gmail.com>
Wed, 24 Jul 2013 18:08:55 +0000 (18:08 +0000)
Follows-up a4b62f1. Fixes bug where initial offset during set up is
wrong and thus causes the used offset to be 0.

Change-Id: I7444bf55a11e817d85bb5c4879022633869fc55d

resources/mediawiki/mediawiki.notification.js

index 146537a..70f639c 100644 (file)
        function init() {
                var offset, $window = $( window );
 
-               $area = $( '<div id="mw-notification-area" class="mw-notification-area"></div>' )
+               $area = $( '<div id="mw-notification-area" class="mw-notification-area mw-notification-area-layout"></div>' )
                        // Pause auto-hide timers when the mouse is in the notification area.
                        .on( {
                                mouseenter: notification.pause,