Przeglądaj źródła

Remove fitInViewport balloon position option.

Maciej Gołaszewski 6 lat temu
rodzic
commit
2c2359f93c

+ 1 - 2
packages/ckeditor5-mention/src/mentionui.js

@@ -452,8 +452,7 @@ export default class MentionUI extends Plugin {
 
 				return null;
 			},
-			positions: getBalloonPanelPositions( positionName ),
-			fitInViewport: true
+			positions: getBalloonPanelPositions( positionName )
 		};
 	}
 }

+ 1 - 2
packages/ckeditor5-mention/tests/mentionui.js

@@ -152,9 +152,8 @@ describe( 'MentionUI', () => {
 			return waitForDebounce()
 				.then( () => {
 					const pinArgument = pinSpy.firstCall.args[ 0 ];
-					const { target, positions, limiter, fitInViewport } = pinArgument;
+					const { target, positions, limiter } = pinArgument;
 
-					expect( fitInViewport ).to.be.true;
 					expect( positions ).to.have.length( 4 );
 
 					// Mention UI should set limiter to the editable area.