File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
shelly/plotlyjs/static/plotlyjs/src
test-dashboard/toolpanel-dashboard Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ fx.init = function(gd) {
78
78
79
79
if ( fullLayout . _hasGL3D || fullLayout . _hasGeo || gd . _context . staticPlot ) return ;
80
80
81
- var subplots = Object . keys ( fullLayout . _plots ) . sort ( function ( a , b ) {
81
+ var subplots = Object . keys ( fullLayout . _plots || { } ) . sort ( function ( a , b ) {
82
82
// sort overlays last, then by x axis number, then y axis number
83
83
if ( ( fullLayout . _plots [ a ] . mainplot && true ) ===
84
84
( fullLayout . _plots [ b ] . mainplot && true ) ) {
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ function createPlot (divId) {
31
31
graphDiv . style . verticalAlign = 'top' ;
32
32
33
33
toolDiv . className = 'toolDiv' ;
34
+ toolDiv . style . width = '500px' ;
34
35
35
36
containerDiv . appendChild ( toolDiv ) ;
36
37
containerDiv . appendChild ( graphDiv ) ;
@@ -54,14 +55,14 @@ function createPlot (divId) {
54
55
55
56
graphDiv . toolPanel = toolPanel = new ToolPanel ( Plotly , graphDiv , {
56
57
standalone : true ,
57
- popoverContainer : containerDiv
58
+ popoverContainer : containerDiv ,
59
+ menuStyle : 'descriptive'
58
60
} ) ;
59
61
60
62
window . toolPanel = graphDiv . toolPanel ;
61
63
62
64
graphDiv . toolPanel . makeMenu ( {
63
- toolMenuContainer : toolDiv ,
64
- menuStyle : 'narrow'
65
+ toolMenuContainer : toolDiv
65
66
} ) ;
66
67
67
68
toolPanel . createMenuMultiButton ( [
You can’t perform that action at this time.
0 commit comments