From cb09d6a54dca79866795c43df6462cb601109fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 6 Feb 2019 01:29:42 +0100 Subject: [PATCH] DesktopArticleTarget: Fix position of progress bar if editor is reloaded Change-Id: I5f181a9516ff64988aa67e54ebd342c56e4b7e70 --- .../ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js index 58b4014703..d8f1233748 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.init.js @@ -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 );