Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive without browser resize / zoom #974

Closed
Wyzix33 opened this issue Apr 4, 2022 · 1 comment
Closed

Responsive without browser resize / zoom #974

Wyzix33 opened this issue Apr 4, 2022 · 1 comment
Milestone

Comments

@Wyzix33
Copy link

Wyzix33 commented Apr 4, 2022

Version

"suneditor": "^2.42.0",

Additional context

Hi,
thank you for this great editor, just started integrating it into my project and I have noticed that the responsive feats only work when resizing / loading / zooming my browser window, but I have my forms inside a Split.js container that can be resized by user.
My question is how can I trigger the resize function manually to let the editor know that the form width has changed so it can recalculate what buttons should be visible based on the editor width.
Here is a screenshot how the editor looks when changing the width by browser resize and element resize.

I can set a ResizeObserver on my form to catch all resizes, just need a way to let the editor know it's width changed.

browser-resize
element-resize

Thanks

@JiHong88 JiHong88 added this to the 2.43.0 milestone Apr 5, 2022
JiHong88 added a commit that referenced this issue Apr 5, 2022
@JiHong88 JiHong88 closed this as completed Apr 5, 2022
@JiHong88
Copy link
Owner

The 2.43.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants