Skip to content

Commit

Permalink
Don't measure DOM for window size
Browse files Browse the repository at this point in the history
Adresses #175
  • Loading branch information
yishn committed Mar 10, 2017
1 parent b60d888 commit 84d61c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2595,9 +2595,8 @@ $(window).on('load', function() {
sabaki.detachEngine()

if (!win.isMaximized() && !win.isMinimized() && !win.isFullScreen()) {
setting
.set('window.width', Math.round($('body').width()))
.set('window.height', Math.round($('body').height()))
let [width, height] = win.getContentSize()
setting.set('window.width', width).set('window.height', height)
}
}
})

0 comments on commit 84d61c7

Please sign in to comment.