ember-twiddle
ember-twiddle copied to clipboard
Cursor Bug
- Open a new twiddle
- Use the file tree to navigate to twiddle.json (didnt try others)
- Click at the end like you want to add a comma so you can add another entry in the list. The cursor refuses to go all the way to the right.
- Start typing. The cursor jumps up to another line.
http://gifyu.com/images/weirdcursor.gif http://gifyu.com/images/weirdcursor2.gif Note: the screen flickering seems to be a product of the way I converted .mov into .gif and isn't there irl.
Also, on the first keypress this error pops up.
This seems to be related to https://github.com/codemirror/CodeMirror/issues/1642
The workaround seems to be we have to call setSize() on each of the CodeMirror editors after any resize. That's going to be annoying to implement.
The error you are seeing in the console is just due to invalid twiddle.json
@Gaurav0 I was thinking about how to approach this so I'll list some options:
- Use the split-view addon (or potentially improve it / base our own split-view on it if needed)
-
css-element-queries seems pretty promising (it has a
ResizeSensor
class which would be useful to us) it could be used to watch when the FileEditorColumn dom element resizes
This problem still exists.
This seems to be fixed.