mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't slow shrink PDF panel with each reload
This commit is contained in:
parent
d81512f6d6
commit
e1a130a941
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue