@@ -376,8 +376,8 @@ where
376
376
Text :: < Theme , Renderer > :: new ( icon. to_string ( ) )
377
377
. size ( size)
378
378
. font ( font. unwrap_or_default ( ) )
379
- . horizontal_alignment ( alignment:: Horizontal :: Center )
380
- . vertical_alignment ( alignment:: Vertical :: Center )
379
+ . align_x ( alignment:: Horizontal :: Center )
380
+ // .align_y (alignment::Horizontal ::Center)
381
381
. shaping ( iced:: advanced:: text:: Shaping :: Advanced )
382
382
. width ( Length :: Shrink )
383
383
}
@@ -395,8 +395,7 @@ where
395
395
Text :: < Theme , Renderer > :: new ( text)
396
396
. size ( size)
397
397
. font ( font. unwrap_or_default ( ) )
398
- . horizontal_alignment ( alignment:: Horizontal :: Center )
399
- . vertical_alignment ( alignment:: Vertical :: Center )
398
+ . align_x ( alignment:: Horizontal :: Center )
400
399
. shaping ( text:: Shaping :: Advanced )
401
400
. width ( Length :: Shrink )
402
401
}
@@ -409,16 +408,16 @@ where
409
408
. push (
410
409
match tab_label {
411
410
TabLabel :: Icon ( icon) => Column :: new ( )
412
- . align_items ( Alignment :: Center )
411
+ . align_x ( Alignment :: Center )
413
412
. push ( layout_icon ( icon, self . icon_size + 1.0 , self . font ) ) ,
414
413
415
414
TabLabel :: Text ( text) => Column :: new ( )
416
415
. padding ( 5.0 )
417
- . align_items ( Alignment :: Center )
416
+ . align_x ( Alignment :: Center )
418
417
. push ( layout_text ( text, self . text_size + 1.0 , self . text_font ) ) ,
419
418
420
419
TabLabel :: IconText ( icon, text) => {
421
- let mut column = Column :: new ( ) . align_items ( Alignment :: Center ) ;
420
+ let mut column = Column :: new ( ) . align_x ( Alignment :: Center ) ;
422
421
423
422
match self . position {
424
423
Position :: Top => {
@@ -437,7 +436,7 @@ where
437
436
Position :: Right => {
438
437
column = column. push (
439
438
Row :: new ( )
440
- . align_items ( Alignment :: Center )
439
+ . align_y ( Alignment :: Center )
441
440
. push ( layout_text (
442
441
text,
443
442
self . text_size + 1.0 ,
@@ -453,7 +452,7 @@ where
453
452
Position :: Left => {
454
453
column = column. push (
455
454
Row :: new ( )
456
- . align_items ( Alignment :: Center )
455
+ . align_y ( Alignment :: Center )
457
456
. push ( layout_icon (
458
457
icon,
459
458
self . icon_size + 1.0 ,
@@ -487,7 +486,7 @@ where
487
486
. width ( self . tab_width )
488
487
. height ( self . height ) ,
489
488
)
490
- . align_items ( Alignment :: Center )
489
+ . align_y ( Alignment :: Center )
491
490
. padding ( self . padding )
492
491
. width ( self . tab_width ) ;
493
492
@@ -496,7 +495,7 @@ where
496
495
Row :: new ( )
497
496
. width ( Length :: Fixed ( self . close_size * 1.3 + 1.0 ) )
498
497
. height ( Length :: Fixed ( self . close_size * 1.3 + 1.0 ) )
499
- . align_items ( Alignment :: Center ) ,
498
+ . align_y ( Alignment :: Center ) ,
500
499
) ;
501
500
}
502
501
@@ -505,7 +504,7 @@ where
505
504
. width ( self . width )
506
505
. height ( self . height )
507
506
. spacing ( self . spacing )
508
- . align_items ( Alignment :: Center ) ;
507
+ . align_y ( Alignment :: Center ) ;
509
508
510
509
let element: Element < Message , Theme , Renderer > = Element :: new ( row) ;
511
510
let tab_tree = if let Some ( child_tree) = tree. children . get_mut ( 0 ) {
0 commit comments