Try to add a cell notes to a cell in last column or last row, it will be impossible to edit since it’s partially hidden.
In Origin 2023, the box will shift to left or upward to be more visible
System variable @CCFA is added. The position adjustment will happen if the reduction of the size due to the limited space would be more than 100% minus the value of the system variable, and independently for width and height. If there is any position adjustment, there will be no leader line in the non-editable case.
@CCFA=0 will preserve the old behavior (no shifting).