Skip to content

Commit

Permalink
🐛 Fix broken view destruction with shadow DOM disabled
Browse files Browse the repository at this point in the history
Closes #166
  • Loading branch information
abe33 committed Dec 5, 2014
1 parent b5ee472 commit 7d062ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/minimap-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ class MinimapView extends View
@css maxWidth: ''
@editorView.style.paddingRight = ''
@editorView.style.paddingLeft = ''
@getEditorViewRoot().querySelector('.vertical-scrollbar').style.right = ''
# When called in destroy with shadow DOM disabled, the vertical scrollbar
# is no longer reachable.
@getEditorViewRoot().querySelector('.vertical-scrollbar')?.style.right = ''

# Internal: Updates the vertical scrolling of the minimap.
#
Expand Down

0 comments on commit 7d062ec

Please sign in to comment.