@@ -5,6 +5,7 @@ use notation_bevy_utils::prelude::ShapeOp;
55use notation_model:: lane_kind:: LaneKind ;
66
77use crate :: chord:: chord_view:: ChordView ;
8+ use crate :: tone:: tone_line:: ToneLineData ;
89use crate :: lane:: lane_layout:: LaneLayoutData ;
910use crate :: prelude:: {
1011 BevyUtil , ChordBundle , EntryBundle , LyricsPlugin , NotationAssets , NotationAssetsStates ,
@@ -150,6 +151,7 @@ fn on_tab_bars_resized(
150151 settings : Res < NotationSettings > ,
151152 theme : Res < NotationTheme > ,
152153 mut tone_note_query : Query < ( Entity , & mut ToneNoteData ) , With < ToneNoteData > > ,
154+ mut tone_line_query : Query < ( Entity , & mut ToneLineData ) , With < ToneLineData > > ,
153155 mut pick_note_query : Query < ( Entity , & mut PickNoteData ) , With < PickNoteData > > ,
154156 mut single_string_query : Query < ( Entity , & mut SingleStringData ) , With < SingleStringData > > ,
155157 mut word_text_query : Query < ( Entity , & mut WordTextData ) , With < WordTextData > > ,
@@ -169,6 +171,14 @@ fn on_tab_bars_resized(
169171 }
170172 }
171173 }
174+ for ( entity, mut data) in tone_line_query. iter_mut ( ) {
175+ for ( view, layout) in bars. iter ( ) {
176+ if data. bar_props . bar_ordinal == view. bar_props . bar_ordinal {
177+ data. value . bar_size = layout. size . width ;
178+ data. update ( & mut commands, & theme, entity) ;
179+ }
180+ }
181+ }
172182 for ( entity, mut data) in word_text_query. iter_mut ( ) {
173183 for ( view, layout) in bars. iter ( ) {
174184 if data. bar_props . bar_ordinal == view. bar_props . bar_ordinal {
0 commit comments