The chrome API lets you manipulate the size of a window through the chrome.windows.update method, however there’s a bug (#50138) where if a window is maximized then it won’t resize and there doesn’t appear to be a way to unmaximize a window.
The only solution I can think of is to create a new window which start unmaximized with the desired dimensions and then moving the tabs over to the new window. Here’s some example code I threw together which should maintain the state from one window to the new one:
-
scribblepadofdoom posted this