Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
enable preferred size mode for non-macs
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Sep 14, 2016
1 parent d348ff9 commit 1ffccd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/components/popupWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class PopupWindow extends ImmutableComponent {
this.forceUpdate()
}
}
webview.addEventListener('did-attach', () => {
webview.enablePreferredSizeMode(true)
})
webview.addEventListener('preferred-size-changed', (e) => {
updateSize()
})
Expand Down

0 comments on commit 1ffccd3

Please sign in to comment.