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

Change size when using ace editor #39

Open
tungns0695 opened this issue Sep 7, 2020 · 4 comments
Open

Change size when using ace editor #39

tungns0695 opened this issue Sep 7, 2020 · 4 comments

Comments

@tungns0695
Copy link

How can i change size of this component when using ace editor?

@developergunny
Copy link

clear?

@bbemis017
Copy link

bbemis017 commented Jan 31, 2021

I think this sounds like it could be similar to the issue I'm seeing.

When I add the jsonEditor to my application, It does not expand to the full height.
image
If I set the height for the div that contains the jsonEditor to be 75vh the json editor expands but the content in the ace editor does not
image

Update - I just realized that resizing it the way I did worked. But because I tested my css in the browser first the ace editor didn't adjust automatically. So changing the height of the parent div does work

When I remove the ace editor, I can easily set the height of the content the way I want it. So I guess to get back to what I think @tungns0695 question is. Is there a correct way to control the height of the ace editor?

@fiskus
Copy link
Contributor

fiskus commented Mar 4, 2021

I use htmlElementProps={{ style: { height: '300px' } }} to control height

@VijayMoses2k
Copy link

why I can't change the font size of the Ace Editor using useState hooks in react, I mean I tried it, but it didn't change dynamically in the website when I change it.

is the fontSize property not changeable like that. please someone provide me a solution.

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

No branches or pull requests

5 participants