mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-15 03:04:37 +03:00
Set body's visibility to hidden when unloading
Previously the display was changed to none via $.hide() which accidentally affected the ability of package's to serialize DOM properties such as scrollTop since the value would always be zero when the display was none. The goal here is to just prevent a flicker when refreshing the editor window and setting visibility to hidden still accomplishes this.
This commit is contained in:
parent
ee87c757ed
commit
87e325dce1
@ -194,7 +194,7 @@ class Atom
|
||||
@menu.update()
|
||||
|
||||
$(window).on 'unload', =>
|
||||
$(document.body).hide()
|
||||
$(document.body).css('visibility', 'hidden')
|
||||
@unloadEditorWindow()
|
||||
false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user