kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.39k stars 128 forks source link

modal.setFrame()? #278

Open rcarmo opened 3 years ago

rcarmo commented 3 years ago

I'm trying to draw window overlays and drag regions, and It seems I can't resize a Modal (which would do nicely for a transient full-window overlay) in any way, at least according to the docs.

Any workarounds?

kasper commented 3 years ago

Modals auto-resize. Currently the only way to adjust the size is to set the weight property of a modal.

rcarmo commented 3 years ago

Yes, I have come to realize that. I need to draw a window-sized rectangle and place it arbitrarily on screen, so I guess there is no way to do that in Phoenix currently.

On 16 Jun 2021, at 21:36, Kasper Hirvikoski @.***> wrote:

 Modals auto-resize. Currently the only way to adjust the size is to set the weight property of a modal.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

kasper commented 3 years ago

You can arbitrarily place the modal anywhere on the screen, but yes if would want to have an exact size, that is not currently possible. I’ll think about that.