mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 16:44:51 +00:00
Merge "DesktopArticleTarget: Fix position of progress bar if editor is reloaded"
This commit is contained in:
commit
c7049f4de1
|
@ -68,6 +68,8 @@
|
|||
bottom = Math.min( clientTop + $content[ 0 ].offsetHeight, windowHeight );
|
||||
middle = ( bottom - top ) / 2;
|
||||
init.$loading.css( 'top', middle + Math.max( -clientTop, 0 ) );
|
||||
} else {
|
||||
init.$loading.css( 'top', '' );
|
||||
}
|
||||
|
||||
$content.prepend( init.$loading );
|
||||
|
|
Loading…
Reference in a new issue