Commit f35bec8 1 parent 177f3d6 commit f35bec8 Copy full SHA for f35bec8
File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ Garrett Risley
15
15
Robert Wittams
16
16
Jaap Aarts
17
17
Maximilian Köstler
18
+ Bruno Dupuis
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ You can find its changes [documented below](#070---2021-01-01).
84
84
- X11 backend now supports scaling([ #1751 ] by [ @Maan2003 ] )
85
85
- X11 backend now supports changing cursors ([ #1755 ] by [ @Maan2003 ] )
86
86
- X11 backend now uses the platform locale ([ #1756 ] by [ @Maan2003 ] )
87
+ - ` Either ` and ` Tab ` widgets were still propagating events to hidden widgets ([ #1860 ] by [ @lisael ] )
87
88
88
89
### Visual
89
90
@@ -493,6 +494,7 @@ Last release without a changelog :(
493
494
[ @r-ml ] : https://github.com/r-ml
494
495
[ @djeedai ] : https://github.com/djeedai
495
496
[ @bjorn ] : https://github.com/bjorn
497
+ [ @lisael ] : https://github.com/lisael
496
498
497
499
[ #599 ] : https://github.com/linebender/druid/pull/599
498
500
[ #611 ] : https://github.com/linebender/druid/pull/611
@@ -744,6 +746,7 @@ Last release without a changelog :(
744
746
[ #1825 ] : https://github.com/linebender/druid/pull/1825
745
747
[ #1843 ] : https://github.com/linebender/druid/pull/1843
746
748
[ #1851 ] : https://github.com/linebender/druid/pull/1851
749
+ [ #1860 ] : https://github.com/linebender/druid/pull/1860
747
750
[ #1861 ] : https://github.com/linebender/druid/pull/1861
748
751
[ #1863 ] : https://github.com/linebender/druid/pull/1863
749
752
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ impl<T: Data> Widget<T> for Either<T> {
75
75
let current = ( self . closure ) ( data, env) ;
76
76
if current != self . current {
77
77
self . current = current;
78
- ctx. request_layout ( ) ;
78
+ ctx. children_changed ( ) ;
79
79
}
80
80
self . current_widget ( ) . update ( ctx, data, env)
81
81
}
Original file line number Diff line number Diff line change @@ -374,7 +374,6 @@ impl<TP: TabsPolicy> Widget<TabsState<TP>> for TabBar<TP> {
374
374
if let LifeCycle :: WidgetAdded = event {
375
375
self . ensure_tabs ( data) ;
376
376
ctx. children_changed ( ) ;
377
- ctx. request_layout ( ) ;
378
377
}
379
378
380
379
for ( _, tab) in self . tabs . iter_mut ( ) {
@@ -397,7 +396,6 @@ impl<TP: TabsPolicy> Widget<TabsState<TP>> for TabBar<TP> {
397
396
if data. policy . tabs_changed ( & old_data. inner , & data. inner ) {
398
397
self . ensure_tabs ( data) ;
399
398
ctx. children_changed ( ) ;
400
- ctx. request_layout ( ) ;
401
399
} else if old_data. selected != data. selected {
402
400
ctx. request_paint ( ) ;
403
401
}
@@ -611,7 +609,6 @@ impl<TP: TabsPolicy> Widget<TabsState<TP>> for TabsBody<TP> {
611
609
if let LifeCycle :: WidgetAdded = event {
612
610
self . make_tabs ( data) ;
613
611
ctx. children_changed ( ) ;
614
- ctx. request_layout ( ) ;
615
612
}
616
613
617
614
if event. should_propagate_to_hidden ( ) {
@@ -638,7 +635,6 @@ impl<TP: TabsPolicy> Widget<TabsState<TP>> for TabsBody<TP> {
638
635
) {
639
636
let init = if data. policy . tabs_changed ( & old_data. inner , & data. inner ) {
640
637
ctx. children_changed ( ) ;
641
- ctx. request_layout ( ) ;
642
638
Some ( self . make_tabs ( data) )
643
639
} else {
644
640
None
@@ -648,7 +644,7 @@ impl<TP: TabsPolicy> Widget<TabsState<TP>> for TabsBody<TP> {
648
644
self . transition_state = self
649
645
. transition
650
646
. tab_changed ( old_data. selected , data. selected ) ;
651
- ctx. request_layout ( ) ;
647
+ ctx. children_changed ( ) ;
652
648
653
649
if self . transition_state . is_some ( ) {
654
650
ctx. request_anim_frame ( ) ;
You can’t perform that action at this time.
0 commit comments