Enhancement: resize editor on rightbar change

ref to https://github.com/Codiad/Codiad/issues/369