Permalink
Browse files

Hide screen background when device is fullscreen

  • Loading branch information...
nvh committed Nov 8, 2017
1 parent 76769d6 commit 9dd8b13d922cec3ddd192d53a828563084f2699f
Showing with 7 additions and 0 deletions.
  1. +2 −0 framer/Components/DeviceComponent.coffee
  2. +5 −0 test/tests/DeviceComponentTest.coffee
@@ -161,6 +161,8 @@ class exports.DeviceComponent extends BaseClass
if @deviceType isnt "fullscreen" or Utils.isMobile()
screenSizeChanged = screenSizeChanged or @_context.devicePixelRatio isnt window.devicePixelRatio
@_context.devicePixelRatio = window.devicePixelRatio
@screenBackground.visible = @deviceType isnt "fullscreen"
if Utils.isMobile()
@screenMask.visible = false
else
@@ -174,6 +174,11 @@ describe "DeviceComponent", ->
# Exceptions
assert(key in ["fullscreen", "custom", "sony-w85Oc", "test"], "#{key} should have a platform specified")
it "should hide the screen background when device is fullscreen", ->
device = new DeviceComponent()
device.deviceType = "fullscreen"
device.screenBackground.visible.should.equal false
describe.skip "when not showing bezel", ->
before ->
Utils.isFramerStudio = ->

0 comments on commit 9dd8b13

Please sign in to comment.