remove debug prints

Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
This commit is contained in:
Fabrizio Iannetti 2023-07-09 20:32:09 +02:00
parent d5b9799618
commit 6bc32790a1
1 changed files with 0 additions and 3 deletions

View File

@ -131,20 +131,17 @@ fn render_events_in_row(
// update event bars
for cell in row_grid {
ev_y = y;
println!("col={}", cell.pos_x);
for ev_bar in ev_bars.iter_mut() {
if ev_bar.ev.begin == current_day || (ev_bar.ev.begin < first_day && current_day == first_day) {
// start of event
ev_bar.bounds.x = cell.x;
ev_bar.bounds.y = ev_y;
println!("start[{}] y={}", ev_bar.ev.text, ev_y);
}
if ev_bar.ev.end == current_day {
// end of event -> set width
ev_bar.bounds.width = cell.x + cell.width - ev_bar.bounds.x;
}
if ev_bar.ev.is_in_day(current_day) {
println!("ev_y {}->{}", ev_y, ev_y+ ev_height);
ev_y += ev_height;
}
}