From e1a130a9412b9891825aca693bd5532d0934d447 Mon Sep 17 00:00:00 2001 From: James Allen Date: Thu, 27 Mar 2014 13:19:12 +0000 Subject: [PATCH] Don't slow shrink PDF panel with each reload --- services/web/public/coffee/editor/Editor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/editor/Editor.coffee b/services/web/public/coffee/editor/Editor.coffee index f05f7ed222..de2860c6d4 100644 --- a/services/web/public/coffee/editor/Editor.coffee +++ b/services/web/public/coffee/editor/Editor.coffee @@ -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)