mw.debug: Avoid overlap between debug toolbar and OOUI dropdowns

Bug: T106095
Change-Id: Ia519205852324899430ac7a769ee7e81ed80c37f
This commit is contained in:
Bartosz Dziewoński 2017-11-29 17:25:57 +01:00
parent cb297a6f48
commit 58e720dfdc
2 changed files with 10 additions and 0 deletions

View file

@ -947,6 +947,7 @@ return [
],
'dependencies' => [
'jquery.footHovzer',
'oojs-ui-core',
],
],
'mediawiki.diff.styles' => [

View file

@ -4,6 +4,15 @@
var debug,
hovzer = $.getFootHovzer();
OO.ui.getViewportSpacing = function () {
return {
top: 0,
right: 0,
bottom: hovzer.$.outerHeight(),
left: 0
};
};
/**
* Debug toolbar.
*