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

How to set ace-editor content when container block is hidden #2497

Closed
codeofnode opened this issue May 16, 2015 · 4 comments
Closed

How to set ace-editor content when container block is hidden #2497

codeofnode opened this issue May 16, 2015 · 4 comments

Comments

@codeofnode
Copy link

I am trying to set ace editor content when container block is hidden.

I am not able to to the same.

Here is what i am trying http://jsfiddle.net/U5JtP/408/

Why ace editor did not updated the content and how to update in such scenario?

@nightwing
Copy link
Member

  1. use newest version of ace: 1.1.9
  2. call editor.resize() after showing the panel
    see http://jsfiddle.net/U5JtP/409/

@codeofnode
Copy link
Author

Is there any internal configuration/patch, that doesn't require me to resize manually in the code.?

@nightwing
Copy link
Member

No. It is not possible to detect when the size of the dom node changes.
So every time size of the container is modified it is needed to call editor.resize to notify ace about it.

@github-actions
Copy link

github-actions bot commented May 9, 2022

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

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