Przeglądaj źródła

Docs: Improvements in ToolbarView docs.

Aleksander Nowodzinski 6 lat temu
rodzic
commit
94d04ba042
1 zmienionych plików z 13 dodań i 13 usunięć
  1. 13 13
      packages/ckeditor5-ui/src/toolbar/toolbarview.js

+ 13 - 13
packages/ckeditor5-ui/src/toolbar/toolbarview.js

@@ -172,6 +172,18 @@ export default class ToolbarView extends View {
 			}
 		}, { priority: 'low' } );
 
+		/**
+		 * An instance of the resize observer that helps dynamically determine the geometry of the toolbar
+		 * and manage items that do not fit into a single row.
+		 *
+		 * **Note:** Created dynamically only when {@link #shouldGroupWhenFull} is `true`.
+		 *
+		 * @readonly
+		 * @protected
+		 * @member {module:utils/dom/getresizeobserver~ResizeObserver}
+		 */
+		this._groupWhenFullResizeObserver = null;
+
 		/**
 		 * A flag used by {@link #updateGroupedItems} method to make sure no concurrent updates
 		 * are performed to the {@link #items} and {@link #groupedItems}. Because {@link #updateGroupedItems}
@@ -195,23 +207,11 @@ export default class ToolbarView extends View {
 		 * **Note:** Set only when {@link #shouldGroupWhenFull} is `true`.
 		 *
 		 * @readonly
-		 * @protected
+		 * @private
 		 * @member {Number}
 		 */
 		this._groupWhenFullCachedPadding = null;
 
-		/**
-		 * An instance of the resize observer that helps dynamically determine the geometry of the toolbar
-		 * and manage items that do not fit into a single row.
-		 *
-		 * **Note:** Created dynamically only when {@link #shouldGroupWhenFull} is `true`.
-		 *
-		 * @readonly
-		 * @private
-		 * @member {module:utils/dom/getresizeobserver~ResizeObserver}
-		 */
-		this._groupWhenFullResizeObserver = null;
-
 		/**
 		 * A top–level collection aggregating building blocks of the toolbar. It mainly exists to
 		 * make sure {@link #items} do not mix up with the {@link #groupedItemsDropdown}, which helps