Permalink
Browse files

Render device fullscreen when Canvas size matches with device size.

This is great when prototyping for TV.
  • Loading branch information...
J.P.P Treub
J.P.P Treub committed Sep 9, 2016
1 parent e96125a commit cd149e4f18917ceca64485e22d0c0f074663137f
Showing with 4 additions and 0 deletions.
  1. +4 −0 framer/Components/DeviceComponent.coffee
@@ -141,6 +141,7 @@ class exports.DeviceComponent extends BaseClass
@background.width = window.innerWidth + (2 * backgroundOverlap)
@background.height = window.innerHeight + (2 * backgroundOverlap)
+ @_updateDeviceImage()
@hands.scale = @_calculatePhoneScale()
@hands.center()
@phone.center()
@@ -178,6 +179,9 @@ class exports.DeviceComponent extends BaseClass
if Utils.deviceType() is "phone" and @_device.deviceType is "tablet"
return true
+ if @_device.screenWidth is Canvas.width and @_device.screenHeight is Canvas.height
+ return true
+
return false
setupContext: ->

0 comments on commit cd149e4

Please sign in to comment.