소스 검색

Intenral: Covered another case with the same fix.

Marek Lewandowski 6 년 전
부모
커밋
61ea366dc0
1개의 변경된 파일2개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 7
      packages/ckeditor5-widget/src/widgetresize/resizerstate.js

+ 2 - 7
packages/ckeditor5-widget/src/widgetresize/resizerstate.js

@@ -126,13 +126,8 @@ export default class ResizeState {
 
 		const widthStyle = domResizeHost.style.width;
 
-		if ( widthStyle ) {
-			if ( widthStyle.match( /^\d+\.?\d*%$/ ) ) {
-				this.originalWidthPercents = parseFloat( widthStyle );
-			} else {
-				// TODO we need to check it via comparing to the parent's width.
-				this.originalWidthPercents = 50;
-			}
+		if ( widthStyle && widthStyle.match( /^\d+\.?\d*%$/ ) ) {
+			this.originalWidthPercents = parseFloat( widthStyle );
 		} else {
 			this.originalWidthPercents = this._getParentPercentage( domResizeHost );
 		}