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
Modified Graph.react.js to include restyle event #483
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6be39e7
Modified Graph.react.js to include restyle event
mako-npm 8638098
prettier
alexcjohnson b3a2634
remove unused/duplicate imports in integration tests
alexcjohnson b640e63
test graph restyle/relayout events and rebuild
alexcjohnson 7cf7589
Merge branch 'master' into Add_restyle_prop
alexcjohnson e6d2830
fix graph data test
alexcjohnson f605230
robustify percy tests
alexcjohnson 8e7806b
:hocho: `setProps` conditional from new `restyleData`
alexcjohnson 688a66f
fix restyleData propType, and improve prop docs
alexcjohnson File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -640,7 +640,11 @@ def on_click(n_clicks): | |
'x': [1, 2, 3, 4], | ||
'y': [4, 3, 2, 1] | ||
} | ||
] | ||
], | ||
'layout': { | ||
'width': 700, | ||
'height': 450 | ||
} | ||
} | ||
|
||
self.startServer(app=app) | ||
|
@@ -1196,8 +1200,8 @@ def _on_confirmed(submit_n_clicks, cancel_n_clicks, | |
return 'canceled' | ||
|
||
self.startServer(app) | ||
self.snapshot(test_name + ' -> initial') | ||
button = self.wait_for_element_by_css_selector('#button') | ||
self.snapshot(test_name + ' -> initial') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. take the snapshot after we know the button exists |
||
|
||
button.click() | ||
time.sleep(1) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what to say about this one... I'm tempted to consider it a bug, but I don't know what we'd do to fix it. The issue - and I still don't understand why it's triggered intermittently here, but it's a real issue users will face - is that if you have an autosized graph that's initially drawn in a
display: none
container, it gets the default size. It keeps that default size when the container is displayed, because no redraw is triggered. But if the window is resized at all, THEN the graph gets sized correctly.This seems to sometimes happen on CI - see eg https://percy.io/plotly/dash-core-components/builds/1576352?utm_campaign=plotly&utm_content=dash-core-components&utm_source=github_status - so I'm just locking down the size here.