re-resizable icon indicating copy to clipboard operation
re-resizable copied to clipboard

elementRef clientWidth/clientHeight on onResize callback is not updated anymore

Open ioRekz opened this issue 7 years ago • 2 comments

Question

Overview of the problem

I'm using re-resizable version 2.1.0

My browser is:

Chrome

I am sure this issue is not a duplicate?

Description

I was using last react-resizable-box and wanted to get the last version in order to move to react 16 at some point. When doing so, I noticed a different behaviour with the onResize callback. Previously I was using the elementRef clientWidth and clientHeight to resize my element.

After the update, the width and height of the element is not changed when resizing.

Expected behavior

div clientWidth and clientHeight is updated

Actual behavior

element is not updated

ioRekz avatar Nov 13 '17 10:11 ioRekz

@ioRekz Thanks for your report. I'll do investigation.

bokuweb avatar Dec 13 '17 23:12 bokuweb

@ioRekz Could you please provide reproduced project in codesandobox? https://codesandbox.io/s/xp9p7272m4

bokuweb avatar Jun 27 '18 23:06 bokuweb