[choreo] The dotted line shown when placing constraints is totally out of place
Closed this issue · 7 comments
Steps to reproduce:
- Place down a waypoint.
- Select a constraint and click on the waypoint.
- Observe as the dotted line points off to infinity.
Choreo version: f571654
Can't reproduce on Windows, but I know a likely cause. Please respond with system details.
I'm using a Windows 11 (23H2) laptop with a trackpad.
For later investigation: somehow uiState.fieldMatrix
is not getting set when the field component mounts.
This bug seems to be correlated with resizing the Choreo window right at startup. When that happens, the window has a black space in the new area and the UI sometimes doesn't fill the screen. Resizing the window after the fact seems to fix it. An easier way to reproduce is to put your system under load (to the point where typing is laggy, an easy way to do this is to build allwpilib), launch Choreo, and immediately hit Win + Arrow Up to maximize the window.
Thanks for that research. Is the resizing happening before the Field section appears?
Would you please try https://github.com/SleipnirGroup/Choreo/actions/runs/10620118907 with your same reproduction steps when you get a chance? I can't reproduce anymore with this change, but maybe I misunderstood your instructions.
Yes, the resizing happens before the Field section appears. The build you provided seems to have fixed the bug, since I tried to reproduce it for a while, and I couldn't get it to appear. So I'm ready to close this issue when that gets merged into main. Thanks!