8
0
Просмотр исходного кода

Internal: changed the default resizing strategy into center.

Marek Lewandowski 6 лет назад
Родитель
Сommit
c3550ad642
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      packages/ckeditor5-widget/src/resizecontext.js

+ 2 - 4
packages/ckeditor5-widget/src/resizecontext.js

@@ -1,6 +1,5 @@
 import View from '@ckeditor/ckeditor5-ui/src/view';
-// import ResizerCentral from './resizercentral';
-import ResizerTopBound from './resizertopbound';
+import ResizerCentral from './resizercentral';
 import { getAbsoluteBoundaryPoint } from './utils';
 import Template from '@ckeditor/ckeditor5-ui/src/template';
 
@@ -27,8 +26,7 @@ export default class ResizeContext {
 		// view/Element
 		this.widgetWrapperElement = null;
 
-		// this.resizeStrategy = new ResizerCentral( this, options );
-		this.resizeStrategy = new ResizerTopBound( this, options );
+		this.resizeStrategy = new ResizerCentral( this, options );
 
 		/**
 		 * Container of entire resize UI.