Skip to content

Commit

Permalink
Fix container width and height when adjusting size
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Jun 28, 2021
1 parent 549b9e9 commit e410a4d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/block-library/src/site-logo/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,19 @@ const SiteLogo = ( {
>
<ImageEditor
url={ logoUrl }
width={ width }
height={ height }
width={ currentWidth }
height={ currentHeight }
clientWidth={ clientWidth }
naturalHeight={ naturalHeight }
naturalWidth={ naturalWidth }
/>
</ImageEditingProvider>
) : (
<ResizableBox
size={ { width, height } }
size={ {
width: currentWidth,
height: currentHeight,
} }
showHandle={ isSelected }
minWidth={ minWidth }
maxWidth={ maxWidthBuffer }
Expand Down

0 comments on commit e410a4d

Please sign in to comment.