Skip to content

Commit

Permalink
Editor: fix Resizer.js error. (mrdoob#26703)
Browse files Browse the repository at this point in the history
* Editor: fix `Resizer.js` error.

* Update main.css

---------

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
  • Loading branch information
linbingquan and Mugen87 authored Sep 6, 2023
1 parent 94d905f commit 64876c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/js/Resizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Resizer( editor ) {

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';

Expand Down

0 comments on commit 64876c9

Please sign in to comment.