mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Don't slow shrink PDF panel with each reload
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user