Răsfoiți Sursa

Change: Changed block toolbar panel limiter.

Oskar Wróbel 7 ani în urmă
părinte
comite
7b89928990

+ 1 - 1
packages/ckeditor5-ui/src/toolbar/block/blocktoolbar.js

@@ -295,7 +295,7 @@ export default class BlockToolbar extends Plugin {
 	_showPanel() {
 		this.panelView.pin( {
 			target: this.buttonView.element,
-			limiter: this.editor.ui.view.element
+			limiter: this.editor.ui.view.editableElement
 		} );
 	}
 

+ 2 - 2
packages/ckeditor5-ui/tests/toolbar/block/blocktoolbar.js

@@ -171,7 +171,7 @@ describe( 'BlockToolbar', () => {
 				expect( blockToolbar.panelView.isVisible ).to.true;
 				sinon.assert.calledWith( spy, {
 					target: blockToolbar.buttonView.element,
-					limiter: editor.ui.view.element
+					limiter: editor.ui.view.editableElement
 				} );
 			} );
 
@@ -334,7 +334,7 @@ describe( 'BlockToolbar', () => {
 
 			sinon.assert.calledWith( spy, {
 				target: blockToolbar.buttonView.element,
-				limiter: editor.ui.view.element
+				limiter: editor.ui.view.editableElement
 			} );
 		} );