vue-draggable-resizable icon indicating copy to clipboard operation
vue-draggable-resizable copied to clipboard

Parent Resize feature sometimes not working

Open leah-pgdn opened this issue 6 years ago • 2 comments

Hi.

I was testing out the component's features from the demo link.

Apparently, there is a bug with the parent resize feature. I tried to set the component's size to fit its parent's dimensions then resized the window. The component did not resize.

I have attached the screenshot below. I hope this will be fixed soon. I really loved the features of your component.

Screenshot from 2019-08-06 17-58-43 Screenshot from 2019-08-06 17-58-52

leah-pgdn avatar Aug 06 '19 10:08 leah-pgdn

父级高度改变,子组件会溢出,我是这样解决的

if (document.createEvent) { setTimeout(() => { var event = document.createEvent('HTMLEvents') event.initEvent('resize', true, true) window.dispatchEvent(event) }, 100) } else if (document.createEventObject) { window.fireEvent('onresize') }

youzhidong avatar Oct 30 '19 10:10 youzhidong

~~when parent resize call checkParentSize function~~

chanble avatar Dec 04 '19 05:12 chanble