Fix position of inspectors/context inside dialogs

Override #addSurface instead of #getSurfaceConfig, so that the
$overlayContainer option only applies to the "main" surface of the
Target rather than all of the surfaces (including those in
TargetWidgets).

Bug: T194433
Change-Id: I61c609e2d52814b4547fb5292a0bfb237c4c218f
This commit is contained in:
Bartosz Dziewoński 2018-05-18 16:12:48 +02:00
parent a975aacbe7
commit dfe65db5bb

View file

@ -171,10 +171,9 @@ ve.init.mw.DesktopArticleTarget.static.platformType = 'desktop';
/**
* @inheritdoc
*/
ve.init.mw.DesktopArticleTarget.prototype.getSurfaceConfig = function ( config ) {
return ve.init.mw.DesktopArticleTarget.super.prototype.getSurfaceConfig.call( this, ve.extendObject( {
$overlayContainer: $( '#content' )
}, config ) );
ve.init.mw.DesktopArticleTarget.prototype.addSurface = function ( dmDoc, config ) {
config = ve.extendObject( { $overlayContainer: $( '#content' ) }, config );
return ve.init.mw.DesktopArticleTarget.parent.prototype.addSurface.call( this, dmDoc, config );
};
/**