how to set the initial window size for a framework application

is there a way to set the initial window size?

window.resizeTo has no effect.

You can only resize windows that are owned by the current context (i.e., that you opened programmatically), and only if you opened them as popups.

I have an old (and very rough) test notebook that explores the API for windows: Test: Window Features / Fabian Iwand | Observable

i have revised to topic to better indicate the context.

the documentation for window.resizeTo is clear about window creation.
the question concerns whether there is something aspect of a framework application configuration which would permit this control.

Not that I’m aware. Can you say more about your use case?

as i had indicated in the revised topic, it has to do with applications built with the observable framework.

it would improve the presentation if it would be possible to adjust the window size to better correspond to the screen area which the application actually uses.

I’m fairly certain that’s out of scope for Observable Framework. Framework apps are web apps, not native apps, and as such cannot control the browser viewport.

With web applications, you don’t control the viewport size - instead you make your app adapt responsively to the available viewport.

If you want your Framework app to behave like a native app you’ll have to use utilities that bundle it accordingly.