ソースを参照

Refactor toolbar view maxWidth binding

panr 6 年 前
コミット
ffe6bd0194
1 ファイル変更1 行追加4 行削除
  1. 1 4
      packages/ckeditor5-ui/src/toolbar/toolbarview.js

+ 1 - 4
packages/ckeditor5-ui/src/toolbar/toolbarview.js

@@ -21,9 +21,6 @@ import global from '@ckeditor/ckeditor5-utils/src/dom/global';
 import { createDropdown, addToolbarToDropdown } from '../dropdown/utils';
 import { attachLinkToDocumentation } from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
 import verticalDotsIcon from '@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';
-import toUnit from '@ckeditor/ckeditor5-utils/src/dom/tounit';
-
-const toPx = toUnit( 'px' );
 
 import '../../theme/components/toolbar/toolbar.css';
 
@@ -184,7 +181,7 @@ export default class ToolbarView extends View {
 				role: 'toolbar',
 				'aria-label': bind.to( 'ariaLabel' ),
 				style: {
-					maxWidth: bind.to( 'maxWidth', maxWidth => toPx( maxWidth ) )
+					maxWidth: bind.to( 'maxWidth' )
 				}
 			},