瀏覽代碼

Rename RotatorView#checkIsNarrow to RotatorView#updateIsNarrow.

Piotr Jasiun 6 年之前
父節點
當前提交
8ffa4b4a46
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      packages/ckeditor5-ui/src/panel/balloon/contextualballoon.js

+ 3 - 4
packages/ckeditor5-ui/src/panel/balloon/contextualballoon.js

@@ -260,7 +260,7 @@ export default class ContextualBalloon extends Plugin {
 		}
 
 		this.view.pin( this._getBalloonPosition() );
-		this._rotatorView.checkIsNarrow();
+		this._rotatorView.updateIsNarrow();
 	}
 
 	/**
@@ -512,8 +512,7 @@ class RotatorView extends View {
 		this.focusTracker.add( this.element );
 	}
 
-	// @returns {Boolean}
-	checkIsNarrow() {
+	updateIsNarrow() {
 		this.isNarrow = this.element.clientWidth <= 200;
 	}
 
@@ -523,7 +522,7 @@ class RotatorView extends View {
 	showView( view ) {
 		this.hideView();
 		this.content.add( view );
-		this.checkIsNarrow();
+		this.updateIsNarrow();
 	}
 
 	// Hides currently visible view.