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
Editor doesn't work in Safari when height or width is a percentage #235
Comments
@backwardok I'm able to reproduce but I'm not sure what the cause is. This might be an issue with the Ace Library itself. I'll investigate further. |
Interestingly @backwardok the split editor works http://securingsincity.github.io/react-ace/split.html so I wonder if this is an issue with one of the configurations of the demo. |
So after doing some debugging the editor example works fine without the |
Weird! Hopefully that work around solves the problem we're seeing in our usage of it as well. Thanks for looking into that! |
@backwardok no problem. Just because I'm curious, what kind of project are you using react-ace in? |
@securingsincity we're using it for a playground within storybook to allow developers to play around with different react components that exist within our library. |
Changing the title as this appears to be an issue unique to ace and setting the height and width to be a percentage. |
It seems to be working with ace in Safari and Chrome. Or am I doing something wrong? |
@dmigo Its not using the React component ? just |
Not sure if the example changed since I created this, but it seems like the example is working in Safari? |
@backwardok What’s not working for me is the react component , “width” does not not take percentage , just takes eg “500px” . |
react-ace still seems to not be able to take a percentage for width or height. |
As of today, react-ace will still not render if any flavor of '%' is put into width or height, and will not scale to fit the parent properly. |
Problem
The editor works fine in Chrome, but doesn't render properly in Safari. Looking at the resulting markup, it doesn't even render the same way.
Here's what the HTML for the gutter looks like in Safari:
Here's the same HTML for the gutter in Chrome:
This makes it a lot harder to test out when using for accessibility on a Mac since VoiceOver only properly works with Safari, and VoiceOver is the main screen reader for a Mac.
Sample code to reproduce your issue
No special code sample necessary, just load the demo in both Chrome and Safari (http://securingsincity.github.io/react-ace/)
The text was updated successfully, but these errors were encountered: