Re: [w3c/manifest] Support window preferred/initial (minimal?) sizes (#436)

Hey,

@hwikyounglee independently asked about this. I *do* think this could easily be a declarative thing in the manifest:

```json
{
    "default_size": "640x480"
}
```

re-using the "sizes" syntax in ImageResource. This would be a hint to the UA what the default size of the window would be, with the explicit intention of letting the user resize the window and remember that new size (which is why it's not good to use an imperative API).

There is already the [`Window.resizeTo`](https://developer.mozilla.org/en-US/docs/Web/API/Window/resizeTo) method which lets the developer modify the app window's size explicitly, but I think we want one that lets the user change the size of the window without being forced back in every time they re-open it.

I don't think making this part of the Service Worker [`launch`](https://github.com/WICG/sw-launch) event makes sense. It's a bit heavy-handed to require the developer to override navigation just to set a preferred window size.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/436#issuecomment-383231624

Received on Friday, 20 April 2018 21:49:07 UTC