mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add fullscreen class to body when in full screen
Add a `fullscreen` class to body when full screen is triggered, as suggested by @orderedlist in #1694
This commit is contained in:
@@ -473,6 +473,7 @@ class Atom extends Model
|
||||
# Public: Set the full screen state of the current window.
|
||||
setFullScreen: (fullScreen=false) ->
|
||||
ipc.send('call-window-method', 'setFullScreen', fullScreen)
|
||||
if fullScreen then document.body.classList.add("fullscreen") else document.body.classList.remove("fullscreen")
|
||||
|
||||
# Public: Is the current window in full screen mode?
|
||||
isFullScreen: ->
|
||||
|
||||
Reference in New Issue
Block a user