Kaynağa Gözat

Other: Removed legacy width and height attributes from the BoxedEditorUIView. Closes #25.

Aleksander Nowodzinski 8 yıl önce
ebeveyn
işleme
332f3ae55b

+ 0 - 16
packages/ckeditor5-ui/src/editorui/boxed/boxededitoruiview.js

@@ -30,22 +30,6 @@ export default class BoxedEditorUIView extends EditorUIView {
 		const ariaLabelUid = uid();
 
 		/**
-		 * The UI's width.
-		 *
-		 * @observable
-		 * @member {Number} #width
-		 */
-		this.set( 'width', null );
-
-		/**
-		 * The UI's height.
-		 *
-		 * @observable
-		 * @member {Number} #height
-		 */
-		this.set( 'height', null );
-
-		/**
 		 * Collection of the child views located in the top (`.ck-editor__top`)
 		 * area of the UI.
 		 *

+ 0 - 5
packages/ckeditor5-ui/tests/editorui/boxed/boxededitoruiview.js

@@ -23,11 +23,6 @@ describe( 'BoxedEditorUIView', () => {
 			expect( view.main ).to.be.instanceof( ViewCollection );
 		} );
 
-		it( 'sets "width" and "height" attributes', () => {
-			expect( view.width ).to.equal( null );
-			expect( view.height ).to.equal( null );
-		} );
-
 		it( 'bootstraps the view element from template', () => {
 			expect( view.element.classList.contains( 'ck-editor' ) ).to.be.true;
 			expect( view.element.classList.contains( 'ck-reset' ) ).to.be.true;