Skip to content

Commit

Permalink
Ensure drag handle matches cursor position when resizing a center ali…
Browse files Browse the repository at this point in the history
…gned image (#46497)
  • Loading branch information
talldan committed Dec 14, 2022
1 parent d7199fc commit 87b21a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/image/image.js
Expand Up @@ -611,6 +611,7 @@ export default function Image( {
height: parseInt( currentHeight + delta.height, 10 ),
} );
} }
resizeRatio={ align === 'center' ? 2 : 1 }
>
{ img }
</ResizableBox>
Expand Down

0 comments on commit 87b21a5

Please sign in to comment.