79658358

Date: 2025-06-09 04:38:02
Score: 2.5
Natty:
Report link

what can cause FLET to totally ignore the set height and width, no matter if you use min/max values, or just the normal width=xx height=xx
I keep experiencing that problem with code looking like this, and no element is bigger than the actual app's size, everything is smaller and should fit, but it stretches the app to about 1000 or si in width, element only fill half the app.

def main(page: ft.Page):
    page.title = "The App Name"
    page.theme_mode = ft.ThemeMode.LIGHT
    
    #page.window_width = 300  #ignores this value
    #page.window_height = 600 #often ignores this a bit
    
    page.window_min_width, page.window_max_width = 400, 400
    page.window_min_height, page.window_max_height = 600, 600
    
    page.window_resizable = True # So that we can resize it in the lower corner!
    page.update() # Enforcing these values somehow does not work?!?!
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): what can
  • Low reputation (1):
Posted by: AlexData