Fix splitter position

Fix splitter position when switching between HTML preview and HTML source.

issue #20