Merge "Replace call to setToolbarHeight with setPadding"

This commit is contained in:
jenkins-bot 2019-05-23 18:25:46 +00:00 committed by Gerrit Code Review
commit 603223152c

View file

@ -301,7 +301,7 @@ ve.init.mw.MobileArticleTarget.prototype.adjustContentPadding = function () {
var toolbarHeight = this.getToolbar().$element.outerHeight(),
surface = this.getSurface(),
surfaceView = surface.getView();
surface.setToolbarHeight( toolbarHeight );
surface.setPadding( { top: toolbarHeight } );
surfaceView.$attachedRootNode.css( 'padding-top', toolbarHeight );
surface.$placeholder.css( 'padding-top', toolbarHeight );
surfaceView.emit( 'position' );