Skip to content

Commit

Permalink
Fix: Image resizer doesn't work when one dimension is changed (#16398)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jul 4, 2019
1 parent 9de5431 commit 10416fc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/block-library/src/image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,12 +851,10 @@ class ImageEdit extends Component {
<>
{ getInspectorControls( imageWidth, imageHeight ) }
<ResizableBox
size={
width && height ? {
width,
height,
} : undefined
}
size={ {
width,
height,
} }
minWidth={ minWidth }
maxWidth={ maxWidthBuffer }
minHeight={ minHeight }
Expand Down

0 comments on commit 10416fc

Please sign in to comment.