go-astilectron icon indicating copy to clipboard operation
go-astilectron copied to clipboard

Question, windows control method

Open deepch opened this issue 5 years ago • 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?

deepch avatar May 10 '20 01:05 deepch

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.

asticode avatar May 10 '20 09:05 asticode

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

deepch avatar May 10 '20 12:05 deepch