Repository navigation
Expose resizing to editor - #2603
Conversation
|
We decided to abandon the use of the |
|
@nathansobo doing the update in |
|
That's probably because of the feedback loop I discussed. We need to pause handling of height and width changes during updates. |
We always measure the scroll view in the ::componentWillUpdate hook, so performing *another* update in response to the measurement causes an invariant violation in react. Whenever we are measuring, we are always already updating.
|
I tested this out with splits and soft-wrap and didn't find any problems. I found one slight bug, but I'm not going to invest too much time into fixing it. To reproduce:
Expected What happens |
|
We should experiment with whether the |
|
@nathansobo it is emitted, this was how we originally got this working. |
|
@kevinsawicki I can't reproduce this. How are you toggling the tree-view, |
|
Using |
|
I've moved things back to the I'm still not sure why the |
|
@nathansobo I'm not sure if adding the resize events make if feel any faster. I'm going to leave them in though and you can test it out yourself. |
Expose resizing to editor
|
🎆 I'd like to dig into a timeline and play with this to make sure the polling doesn't adversely affect responsiveness. I doubt it will though. |



This updates the editor's height/width when the editor component's height/width changes. This fixes the problem of tool-panels covering up the cursor position.
Closes #2578