[IMP] add a hook lcEditor.HookOnBeforeUnload() to re-scroll the last line when the window is foreced refresh
[IMP] fixed the window size unstable when html/editor tab switching