mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Merge "[DNM] Add …-toolbar-open class after toolbarSetupDeferred resolved"
This commit is contained in:
commit
e5a9984fe0
|
@ -254,14 +254,14 @@ ve.init.mw.DesktopArticleTarget.prototype.setupToolbar = function ( surface ) {
|
|||
|
||||
ve.track( 'trace.setupToolbar.exit', { mode: mode } );
|
||||
if ( !wasSetup ) {
|
||||
toolbar.$element
|
||||
.addClass( 've-init-mw-desktopArticleTarget-toolbar-open' );
|
||||
if ( !toolbar.isFloating() ) {
|
||||
toolbar.$element.css( 'height', '' );
|
||||
}
|
||||
this.toolbarSetupDeferred.resolve();
|
||||
|
||||
this.toolbarSetupDeferred.done( function () {
|
||||
toolbar.$element.addClass( 've-init-mw-desktopArticleTarget-toolbar-open' );
|
||||
|
||||
var newSurface = target.getSurface();
|
||||
// Check the surface wasn't torn down while the toolbar was animating
|
||||
if ( newSurface ) {
|
||||
|
|
Loading…
Reference in a new issue