mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Add maximized parameter
This commit is contained in:
@@ -211,7 +211,7 @@ class Atom extends Model
|
||||
# :width - The new width.
|
||||
# :height - The new height.
|
||||
# :maximized - A {Boolean} for the maximized window state.
|
||||
setWindowDimensions: ({x, y, width, height}) ->
|
||||
setWindowDimensions: ({x, y, width, height, maximized}) ->
|
||||
if maximized and process.platform isnt 'darwin'
|
||||
@maximize()
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user