From 6134dd7124c98a39d6134a1474514eb5f0a7f6bb Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 15 Nov 2017 14:25:32 +0100 Subject: [PATCH] Image Block: Always use integer values for the image size --- blocks/library/image/block.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/library/image/block.js b/blocks/library/image/block.js index f8b80463eaf6e9..6d5951ab23f35b 100644 --- a/blocks/library/image/block.js +++ b/blocks/library/image/block.js @@ -249,8 +249,8 @@ class ImageBlock extends Component { enable={ { top: false, right: true, bottom: false, left: false, topRight: true, bottomRight: true, bottomLeft: true, topLeft: true } } onResizeStop={ ( event, direction, elt, delta ) => { setAttributes( { - width: currentWidth + delta.width, - height: currentHeight + delta.height, + width: parseInt( currentWidth + delta.width, 10 ), + height: parseInt( currentHeight + delta.height, 10 ), } ); } } >