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

allow use of element ID in Plots.resize #2212

Merged
merged 2 commits into from
Dec 18, 2017
Merged

allow use of element ID in Plots.resize #2212

merged 2 commits into from
Dec 18, 2017

Conversation

alexcjohnson
Copy link
Collaborator

Also Plots.redrawText while we're at it - this is the other one in Plots that might occasionally need to be called from outside.

cc @etpinard @VeraZab

and make sure the resize tests actually DO something
@@ -369,7 +370,7 @@ describe('Test Plots', function() {
.then(done);
});

afterEach(destroyGraphDiv);
afterAll(destroyGraphDiv);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, if we're doing beforeAll we'd better match it with an afterAll! The second test (should resize...) didn't consider that it might be running against a missing plot (mainSvgs.length was 0) so was in fact a noop. The third test (should update...) I guess was OK, gd was still an object with properties even if it wasn't attached to the DOM...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find 🔬

@etpinard
Copy link
Contributor

💃

@alexcjohnson alexcjohnson merged commit 49307f8 into master Dec 18, 2017
@alexcjohnson alexcjohnson deleted the resize-id branch December 18, 2017 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants