Skip to content

Commit 9dd8b13

Browse files
committed
Hide screen background when device is fullscreen
1 parent 76769d6 commit 9dd8b13

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

framer/Components/DeviceComponent.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ class exports.DeviceComponent extends BaseClass
161161
if @deviceType isnt "fullscreen" or Utils.isMobile()
162162
screenSizeChanged = screenSizeChanged or @_context.devicePixelRatio isnt window.devicePixelRatio
163163
@_context.devicePixelRatio = window.devicePixelRatio
164+
@screenBackground.visible = @deviceType isnt "fullscreen"
165+
164166
if Utils.isMobile()
165167
@screenMask.visible = false
166168
else

test/tests/DeviceComponentTest.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ describe "DeviceComponent", ->
174174
# Exceptions
175175
assert(key in ["fullscreen", "custom", "sony-w85Oc", "test"], "#{key} should have a platform specified")
176176

177+
it "should hide the screen background when device is fullscreen", ->
178+
device = new DeviceComponent()
179+
device.deviceType = "fullscreen"
180+
device.screenBackground.visible.should.equal false
181+
177182
describe.skip "when not showing bezel", ->
178183
before ->
179184
Utils.isFramerStudio = ->

0 commit comments

Comments
 (0)