镜像自地址
https://github.com/wikimedia/VisualEditor.git
已同步 2024-06-03 03:40:20 +08:00
ve.collab: Resize toolbar properly after adding authorList
Change-Id: I18ebe5a230b775d048d5c5792b455831b9b59968
这个提交包含在:
父节点
501dafff3f
当前提交
cf7feefc01
|
@ -113,10 +113,12 @@ ve.collab.initPeerClient = function ( serverId, isMain ) {
|
|||
);
|
||||
return;
|
||||
}
|
||||
ve.init.target.getToolbar().setup(
|
||||
var toolbar = ve.init.target.getToolbar();
|
||||
toolbar.setup(
|
||||
ve.init.target.constructor.static.toolbarGroups,
|
||||
ve.init.target.surface
|
||||
);
|
||||
toolbar.onWindowResize();
|
||||
if ( !isMain ) {
|
||||
// eslint-disable-next-line no-jquery/no-global-selector
|
||||
$( '.ve-ui-toolbar-saveButton' ).css( 'text-decoration', 'line-through' );
|
||||
|
|
|
@ -271,6 +271,11 @@ ve.ui.Toolbar.prototype.detach = function () {
|
|||
this.getSurface().getModel().disconnect( this );
|
||||
this.surface = null;
|
||||
}
|
||||
// Reset narrow state/cache as when we setup again it
|
||||
// may be with a different tool list.
|
||||
// TODO: Create upstream detach/teardown
|
||||
this.setNarrow( false );
|
||||
this.narrowThreshold = null;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
正在加载...
在新工单中引用
屏蔽一个用户