Allow inspectors to position beyond the surface

Change-Id: I3cd0e433ea117b1b469e5a2111f4c7988c48abfd
This commit is contained in:
Ed Sanders 2020-04-30 14:06:57 +01:00
parent 9b581769a7
commit 2aa6e5f583

View file

@ -67,6 +67,13 @@ CommentTarget.prototype.attachToolbar = function () {
this.$element.parent().parent().prepend( this.getToolbar().$element );
};
CommentTarget.prototype.getSurfaceConfig = function ( config ) {
return CommentTarget.super.prototype.getSurfaceConfig.call( this, ve.extendObject( {
// eslint-disable-next-line no-jquery/no-global-selector
$overlayContainer: $( '#content' )
}, config ) );
};
/* Registration */
ve.init.mw.targetFactory.register( CommentTarget );