Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resizing window breaks highlighted trip positions #36

Open
maxwell8888 opened this issue Aug 8, 2022 · 0 comments
Open

Resizing window breaks highlighted trip positions #36

maxwell8888 opened this issue Aug 8, 2022 · 0 comments

Comments

@maxwell8888
Copy link
Contributor

maxwell8888 commented Aug 8, 2022

(Mostly) fixed by setting the appropriate flags in .layout() to indicate that paths/circles should be recalucated when window/widget is resized. The problem is that the with current design this requires recreating all the boxed groups, which is far too slow. Really we need to redesign so that paths and boxes are created for some fixed canvas dimensions (eg the bitmap dimensions) and then to draw on the actual widget sized canvas we transform all the paths/circles with the appropriate scale.
An easier temporary solution is to simply accept that there will be a delay. This is reasonably fine currently for a single size change, eg hitting full screen, but not suitable for click and drag resizing, need to ensure the only do paths/circles recalculations once the drag resizing if finished to avoid doing it multiple times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant