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

Exercise "undo" mode not properly redrawing a tree #199

Open
cashaffer opened this issue Sep 3, 2015 · 0 comments
Open

Exercise "undo" mode not properly redrawing a tree #199

cashaffer opened this issue Sep 3, 2015 · 0 comments

Comments

@cashaffer
Copy link
Collaborator

In the heapremovePRO exercise (see for example http://algoviz.org/OpenDSA/dev/OpenDSA/AV/Binary/heapremovePRO.html), consider as the first step to (mistakenly) decrement the heap. For this exercise, "undo" is the default mechanism for dealing with user mistakes. Since the user action was to decrement the heap, the tree is displayed with one node and one edge removed. "Undo" then tries to reset the tree to its original state. What I see on the screen is first a flicker where the node and edge are redrawn correctly, then the popup message appears. Next, when I dismiss the popup, the tree is REDRAWN INCORRECTLY with the edge missing.

This is all happening automatically under JSAV control by the "undo" mode. So I don't think that there is anything incorrect about the exercise code, nor any way for the exercise to catch and work around the display error.

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