NativePHP / laravel

Laravel wrapper for the NativePHP framework
https://nativephp.com
MIT License
3.08k stars 158 forks source link

Unable to set the minimum window size #334

Open Supernova3339 opened 2 months ago

Supernova3339 commented 2 months ago

What were you trying to do?

Set the minimum window size in a menubar app

What happened?

The minimum window size is set and I am unable to freely modify the size beyond the minimum set

How to reproduce the bug

Use the following in MenuBar::create

->width(389)
->height(400)
->minWidth(389)
->minHeight(400)

Package Versions

0.6.3 nativephp/electron, 0.5.2 nativephp/laravel, 0.4.0 nativephp/php-bin

PHP Version

8.2.20

Laravel Version

11.15.0

Node Version

21.7.3

Which operating systems have you seen this occur on?

Windows

OS version

win 11 (23H2) (OS Build 22631.3737)

Notes

No response

Supernova3339 commented 1 month ago

hey @omitobi, these flags you provided ( I saw via E-mail ), do not exist for MenuBar.

simonhamp commented 1 month ago

If your window's minHeight and minWidth match its height and width, isn't it just that you don't want the window to be resizable?

Have you tried stopping it from being resizable?