-
Notifications
You must be signed in to change notification settings - Fork 486
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
cannot get height and width for page #1960
Comments
Downgraded the flet version, this issue is resolved. bin/python3 -m pip list | grep flet |
Nice! But I didn't understand. |
Ah Alright! |
All |
I've been able to reproduce that. Looks like a regression. Code to reproduce: import flet as ft
def main(page: ft.Page):
print(page.width, page.height)
print(page.window_width, page.window_height)
page.add(ft.Text("Hi!"))
ft.app(main) Run with Expected result:
Actual result:
|
* AlertDialog uses global state * DatePicker uses global state * State on the control level * Control-level state Fix flet-dev#2025, Fix flet-dev#1807, Fix flet-dev#1236, Fix flet-dev#1772 * Fix control tests * Bump fl_chart to 0.64.0 * Fix `scroll_to` with 0 animation duration Fix flet-dev#1659 * Fix page.width/.height on session start Fix flet-dev#1960 * Fix Flet version retrieval on non-English environments Fix flet-dev#1997
** cannot get height and width. I try it when the page strart or end. **
Code example to reproduce the issue:
Additional information you deem important (e.g. issue happens only occasionally):
Flet version (
pip show flet
):Operating system: macos and ubuntu
the same result in version 0.10.3
The text was updated successfully, but these errors were encountered: