asticode/go-astilectron

Question, windows control method

Opened this issue · 2 comments

Greetings, I have not come here for a long time, I am glad to see that your project is go up. ;)

Is it possible to change the maximum, minimum window size let's say by event?

Create Windows by NewWindow have method MinHeight, MinWidth end etc.....
Next control windows only Resize.

Is it possible to change properties (MinHeight, MinWidth....) after creation? or does the electron not know how to do this?

Hey @deepch, long time no see 😃

There seem to have a setMinimumSize method that would do the job.

It would work like Resize without the need to store both height and width.

I won't have time to work on this anytime soon, but if you feel like making a PR I can provide more details.

wow, nice, I will add it a later. ;)