浏览代码

Editor: fix `Resizer.js` error. (#26703)

* Editor: fix `Resizer.js` error.

* Update main.css

---------

Co-authored-by: Michael Herzog <[email protected]>
林炳权 1 年之前
父节点
当前提交
64876c96e7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/js/Resizer.js

+ 1 - 1
editor/js/Resizer.js

@@ -36,7 +36,7 @@ function Resizer( editor ) {
 
 
 		const cX = clientX < 0 ? 0 : clientX > offsetWidth ? offsetWidth : clientX;
 		const cX = clientX < 0 ? 0 : clientX > offsetWidth ? offsetWidth : clientX;
 
 
-		const x = offsetWidth - cX;
+		const x = Math.max( 260, offsetWidth - cX ); // .TabbedPanel min-width: 260px
 
 
 		dom.style.right = x + 'px';
 		dom.style.right = x + 'px';