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

Commit

Permalink
Merge pull request #3986 from brave/preferred-size-mode
Browse files Browse the repository at this point in the history
enable preferred size mode for non-macs
  • Loading branch information
bbondy authored Sep 14, 2016
2 parents 629fb77 + 1ffccd3 commit 04b3256
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 04b3256

Please sign in to comment.