MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 208 forks source link

Save window size and position. #61

Closed mutru closed 11 years ago

mutru commented 11 years ago

Window size can be still set using macgap.window.resize(), but if it's not, last known window size and position is used. This gives more control to the end user, who can now resize and reposition the window as they wish.

To test, open a MacGap app, move and resize the window, close the app and start it again.

chriskol commented 7 years ago

does this still work? I've just tried building an app with no macgap.window.resize() , opened it, resized it, closed the app, and re-opened. It keeps going back to the default size?

Tbh the only line of code in my app is
window.location.href = 'http://my.web.site';

so is something there messing with it?