Skip to content

Commit

Permalink
Use document.documentElement.clientWidth/Height to calculate dimensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
eelco committed Jun 24, 2017
1 parent fd7851c commit 950b059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framer/Components/DeviceComponent.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ class exports.DeviceComponent extends BaseClass
screenSizeChanged = false
if @_shouldRenderFullScreen()

width = window.innerWidth / contentScaleFactor
height = window.innerHeight / contentScaleFactor
width = document.documentElement.clientWidth / contentScaleFactor
height = document.documentElement.clientHeight / contentScaleFactor
screenSizeChanged = @content.width isnt width or @content.height isnt height
for layer in [@background, @hands, @phone, @viewport, @content, @screen]
layer.x = layer.y = 0
Expand Down

0 comments on commit 950b059

Please sign in to comment.