Explorar el Código

Don't slow shrink PDF panel with each reload

James Allen hace 12 años
padre
commit
e1a130a941
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/web/public/coffee/editor/Editor.coffee

+ 1 - 1
services/web/public/coffee/editor/Editor.coffee

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