@@ -2,9 +2,9 @@ use iced::border;
22use iced:: keyboard;
33use iced:: mouse;
44use iced:: widget:: {
5- button, canvas, center, checkbox, column, container, horizontal_rule ,
6- horizontal_space, pick_list, pin, row, scrollable, stack, text ,
7- vertical_rule,
5+ button, canvas, center, center_y , checkbox, column, container,
6+ horizontal_rule , horizontal_space, pick_list, pin, row, scrollable, stack,
7+ text , vertical_rule,
88} ;
99use iced:: {
1010 color, Center , Element , Fill , Font , Length , Point , Rectangle , Renderer ,
@@ -253,15 +253,14 @@ fn application<'a>() -> Element<'a, Message> {
253253 . border ( border:: color ( palette. background . strong . color ) . width ( 1 ) )
254254 } ) ;
255255
256- let sidebar = container (
256+ let sidebar = center_y (
257257 column ! [ "Sidebar!" , square( 50 ) , square( 50 ) ]
258258 . spacing ( 40 )
259259 . padding ( 10 )
260260 . width ( 200 )
261261 . align_x ( Center ) ,
262262 )
263- . style ( container:: rounded_box)
264- . center_y ( Fill ) ;
263+ . style ( container:: rounded_box) ;
265264
266265 let content = container (
267266 scrollable (
0 commit comments