NASA-AMMOS / aerie-ui

The client application for Aerie.
https://nasa-ammos.github.io/aerie-docs/
MIT License
29 stars 6 forks source link

Auto-scrolling to activity should be bounded by the plan time range #1067

Open AaronPlave opened 10 months ago

AaronPlave commented 10 months ago

Checked for duplicates

Yes - I've already checked

Is this a regression?

No - This is a new bug

Version

2.1.0

Describe the bug

If you have auto scroll to activity enabled and click on an activity that is outside of the plan time bounds the histogram slider will render strangely and errors will be reported in the console logs regarding negative rect widths.

image

Found while testing https://github.com/NASA-AMMOS/aerie-ui/pull/1066

Auto-scroll should either ignore out of bounds activities or bound the new view to the plan time bounds

Reproduction

  1. Make a plan with activities
  2. Anchor an activity to a negative duration from the plan start
  3. Enable auto scroll via button in timeline icon tray
  4. Click on the activity in the table
  5. Examine the logs and histogram slider

Logs

No response

System Info

All

Severity

Minor