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

page.width and height at start of app is set to monitor width height instead of real width and height of browser window #4562

Open
1 task done
gual11 opened this issue Dec 13, 2024 · 0 comments

Comments

@gual11
Copy link

gual11 commented Dec 13, 2024

Duplicate Check

Describe the bug

(Webapp) I want the rescale the view depending on the window size directly from the beginning. When I resize the Window everything works with the on_resized function. I fired the on_resized function after loading the page, but the size is always the max size (width and height) not the actual one, so the page doesn't resize properly

Code sample

Code
need to create that

To reproduce

  1. run code in maximized browser window mode
  2. see size of page
  3. run code while browser win is smaller than max window
  4. size page still size of max window size

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

10

Flet version

Name: flet Version: 0.25.1 Summary: Flet for Python - easily build interactive multi-platform apps in Python Home-page: Author: Appveyor Systems Inc. Author-email: [email protected] License: Apache-2.0 Location: D:\02_GIT\AET_Flet_Dashboard.venv\Lib\site-packages Requires: httpx, oauthlib, repath Required-by: flet-cli, flet-desktop, flet-web

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

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

1 participant