@@ -59,7 +59,7 @@ def build(self):
5959 self .ctrl ['map_check_group_activities' ] = ft .Checkbox (label = 'Group activities' )
6060 self .ctrl ['map_check_group_locations' ] = ft .Checkbox (label = 'Group locations' )
6161 self .ctrl ['map_toolbar_checkboxes' ] = ft .Row (
62- controls = [ft .Text (" Checkboxes:" ),
62+ controls = [ft .Text (' Checkboxes:' ),
6363 self .ctrl ['map_check_view_all' ],
6464 self .ctrl ['map_check_show_names' ],
6565 self .ctrl ['map_check_show_warnings' ],
@@ -76,13 +76,13 @@ def build(self):
7676 # self.ctrl['map_canvas'] = SizeAwareControl(ft.Container(ft.Text('map canvas'),bgcolor='yellow'), width=1000,height=1000, on_resize=self.map_size_change,expand=True)
7777 s1 = SizeAwareControl (
7878 ft .Container (content = ft .Text ('W x H' ), bgcolor = ft .colors .RED , alignment = ft .alignment .center ),
79- on_resize = self .handle_resize , expand = 2
79+ height = 300 , on_resize = self .handle_resize , expand = 2
8080 )
8181 s2 = SizeAwareControl (
8282 ft .Container (content = ft .Text ('W x H' ), bgcolor = ft .colors .BLUE , alignment = ft .alignment .center ),
83- on_resize = self .handle_resize , expand = 3
83+ height = 300 , on_resize = self .handle_resize , expand = 3
8484 )
85- self .ctrl ['map_canvas' ] = ft .Row ([s1 ,s2 ], expand = True )
85+ self .ctrl ['map_canvas' ] = ft .Row ([s1 ,s2 ])
8686 #self.ctrl['map_canvas'] = ft.Container(ft.Text('map canvas'), bgcolor='yellow', width=100, height=100)
8787 # self.ctrl['map_canvas'] = ft.Row([ft.Container(ft.Text('map canvas'), bgcolor='yellow', expand=True)],expand=True)
8888
0 commit comments