-
-
Notifications
You must be signed in to change notification settings - Fork 145
Clone figure.layout so plotly.js doesn't mutate it #279
Conversation
|
test/test_integration.py
Outdated
self.snapshot("Tabs with Graph - initial (graph should not resize)") | ||
|
||
tab_two.click() | ||
time.sleep(1) |
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.
Instead of sleeping, could we try adding an element with an ID inside tab-2-example
and then doing a self.wait_for_element_by_css_selector('#tab-2-element')
? In principle it should be more stable.
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.
Although maybe let's try to start using the official selenium API rather than my wait_for_element_by_css_selector
api, which might be buggy. more context here: #288
thanks! 💃 |
Can you re-base? You would just need to change |
8509ac2
to
0340062
Compare
Change introduced in 0.28.1 breaks my candlestick
On 0.28.0 it works correctly. My Is that what those changes fix? |
@radekwlsk - Can you create a small, reproducable example? |
@radekwlsk This is a known issue: https://community.plot.ly/t/plotly-resize-bug-using-html-details-hidden-div-and-width-100/11201/6 I think that the temporary patch on I think that as a work-around, you can display an empty |
Can this be closed? #256 |
@rmarren1 Yep. |
This fixes the bug where
Graph
s would resize when only supplying one of eitherwidth
orheight
infigure.layout
, especially visible in aTab
component.