Don't slow shrink PDF panel with each reload

This commit is contained in:
James Allen 2014-03-27 13:19:12 +00:00
parent d81512f6d6
commit e1a130a941

View file

@ -71,7 +71,7 @@ define [
_saveSplitterState: () ->
if $("#editorSplitter").is(":visible")
state = $("#editorSplitter").layout().readState()
eastWidth = state.east.size
eastWidth = state.east.size + $("#editorSplitter .ui-layout-resizer-east").width()
percentWidth = eastWidth / $("#editorSplitter").width() * 100 + "%"
state.east.size = percentWidth
$.localStorage("layout.editor", state)