Needs examples for responsive layout #712
Unanswered
illeatmyhat
asked this question in
Q&A
Replies: 1 comment
-
If you are using a modern browser, in some cases using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
React-Ace seems to use the
width
andheight
props to determine a lot of things (i.e. scrolling), and this seems to imply that it is difficult for the project to get rid of them.As an alternative, there needs to be some canonical example of how to embed a React-Ace editor inside of a responsive layout, with resizing containers and elements.
I've gotten it to work using
ResizeObserver
s. It goes something like this:Beta Was this translation helpful? Give feedback.
All reactions