Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #105 from ckeditor/t/1957
Browse files Browse the repository at this point in the history
Fix: Reposition visible toolbar when it is in a not visible stack of rotator. Closes ckeditor/ckeditor5#1957.
  • Loading branch information
Reinmar authored Aug 26, 2019
2 parents cfd41c1 + dee7608 commit a438c8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widgettoolbarrepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ export default class WidgetToolbarRepository extends Plugin {
this.listenTo( this._balloon, 'change:visibleView', () => {
for ( const definition of this._toolbarDefinitions.values() ) {
if ( this._isToolbarVisible( definition ) ) {
this._updateToolbarsVisibility( definition );
const relatedElement = definition.getRelatedElement( this.editor.editing.view.document.selection );
repositionContextualBalloon( this.editor, relatedElement );
}
}
} );
Expand Down

0 comments on commit a438c8b

Please sign in to comment.