Fix bug: quit fullscreen mode, editor cannot restore width and height.