+
{ __(
- 'Use up and down arrow keys to resize the meta box panel.'
+ 'Use up and down arrow keys to resize the meta box pane.'
) }
- >
- ),
- },
- // Avoids hiccups while dragging over objects like iframes and ensures that
- // the event to end the drag is captured by the target (resize handle)
- // whether or not it’s under the pointer.
- onPointerDown: ( { pointerId, target } ) => {
- target.setPointerCapture( pointerId );
- },
- onResizeStart: ( event, direction, elementRef ) => {
- if ( isAutoHeight ) {
- // Sets the starting height to avoid visual jumps in height and
- // aria-valuenow being `NaN` for the first (few) resize events.
- applyHeight( elementRef.offsetHeight, false, true );
- setIsUntouched( false );
- }
- },
- onResize: () =>
- applyHeight( metaBoxesMainRef.current.state.height ),
- onResizeStop: () =>
- applyHeight( metaBoxesMainRef.current.state.height, true ),
- } );
+
+
+ ),
+ };
}
return (
-