Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add page.window_maximizable #494

Closed
noob-infinity opened this issue Oct 18, 2022 · 5 comments
Closed

Add page.window_maximizable #494

noob-infinity opened this issue Oct 18, 2022 · 5 comments
Milestone

Comments

@noob-infinity
Copy link

Hi,

I can prevent window from getting minimized but not maximize.

Is there any way to achieve this ?

@nasoma
Copy link

nasoma commented Oct 18, 2022

Set a window_max_width and window_max_height property on the page control.

@noob-infinity
Copy link
Author

Earlier I had checked with max_width only but after reading I have set the max_height too and it worked. Thanks for the help.

There is one issue with this though. Maximize button reset the position of the window to origin and give the impression that maximize button is not working properly.

@FeodorFitsner
Copy link
Contributor

window_manager library has "setMaximizable" method, but it works on Windows only. I don't know if it makes sense implementing it in Flet as it's for Windows only?

@ndonkoHenri
Copy link
Collaborator

There are some other window properties in Page that work only for Mac. (Forgot the names actually)

So, I think it's worth it.
Let's add everything possible to flet and give the devs the full choice on how to build their UIs. 🙂

@FeodorFitsner FeodorFitsner changed the title How to prevent window from getting maximized ? Add page.window_maximizable Oct 18, 2022
@FeodorFitsner FeodorFitsner added this to the Controls-S3 milestone Oct 18, 2022
@FeodorFitsner
Copy link
Contributor

You bet!

@FeodorFitsner FeodorFitsner added the status: working on it Working on a fix for the issue label Oct 27, 2022
FeodorFitsner added a commit that referenced this issue Oct 27, 2022
@FeodorFitsner FeodorFitsner removed the status: working on it Working on a fix for the issue label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants