scaleflex / filerobot-image-editor

Edit, resize, and filter any image! Any questions or issues, please report to https://github.com/scaleflex/filerobot-image-editor/issues
MIT License
1.35k stars 342 forks source link

Rendering issue on bootstrap modal #468

Open mohammedfaisal opened 4 months ago

mohammedfaisal commented 4 months ago

Hi

I use image editor on a bootstrap modal (popup). The initial image is rendered correctly. When I change the image (usually an image with height and width greater than the initial image), only a portion of image is rendered on the editor. Please see the demo video. The issue is only found when I use image editor on a bootstrap modal.

Screencast from 27-05-24 11:48:17 AM IST.webm

mohammedfaisal commented 4 months ago

See the repo https://github.com/mohammedfaisal/image-editor-vanilla for an example of the issue described.

AhmeeedMostafa commented 3 months ago

@mohammedfaisal please provide some ready-to-check demo (codesandbox or smth. similar) also have u tried to add this param resetOnImageSourceChange and it didn't solve the issue?

mohammedfaisal commented 3 months ago

I have set resetOnImageSourceChange to true. But it doesn't help. Please see the demo here: https://codesandbox.io/p/github/mohammedfaisal/image-editor-vanilla/master?import=true