Fix some render and resize bugs

Most display bugs on first render or when changing editor seem fixed.

There still is a small resize bug that can be reproduced by: splitting pane then destroying pane and scrolling.

There are also a few warnings: "EditorScrollView scrolled when it shouldn't have." after changing active editor. I don't know what trigger them for the moment.