Update CodeEditor.cpp

sorted editor resizing issues..