Permalink
Browse files

Use document.documentElement.clientWidth/Height to calculate dimensions.

  • Loading branch information...
eelco committed Jun 24, 2017
1 parent fd7851c commit 950b059e4bd93a9822e960e5d977a58113c2632a
Showing with 2 additions and 2 deletions.
  1. +2 −2 framer/Components/DeviceComponent.coffee
@@ -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

0 comments on commit 950b059

Please sign in to comment.