Atom.setSize() doesn't work


#1

In my package specs, I want to change size of editor window. I used the command :

atom.setSize(x,y)

I found out that the function doesn’t work when window is maximized, and afaik, the command :

atom.workspace.open('filename')
opens the file in maximized window by default.


#2

Things run differently in package specs for efficiency’s sake. There isn’t a real DOM in place by default and so some things don’t work like they would in a normal Atom window.

Also, atom.workspace.open opens the file in the current window. Any other Atom window is a separate process and there isn’t a built-in way to communicate between Atom windows.