fixed some source editor issues about resizing