Skip to content

Commit 448db40

Browse files
Merge pull request #4381 from plotly/toolmenu-style-methods
Toolmenu style methods
2 parents 1991934 + ed3ed03 commit 448db40

File tree

1 file changed

+4
-3
lines changed
  • test-dashboard/toolpanel-dashboard

1 file changed

+4
-3
lines changed

test-dashboard/toolpanel-dashboard/ui.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function createPlot (divId) {
3131
graphDiv.style.verticalAlign = 'top';
3232

3333
toolDiv.className = 'toolDiv';
34+
toolDiv.style.width = '500px';
3435

3536
containerDiv.appendChild(toolDiv);
3637
containerDiv.appendChild(graphDiv);
@@ -54,14 +55,14 @@ function createPlot (divId) {
5455

5556
graphDiv.toolPanel = toolPanel = new ToolPanel(Plotly, graphDiv, {
5657
standalone: true,
57-
popoverContainer: containerDiv
58+
popoverContainer: containerDiv,
59+
menuStyle: 'descriptive'
5860
});
5961

6062
window.toolPanel = graphDiv.toolPanel;
6163

6264
graphDiv.toolPanel.makeMenu({
63-
toolMenuContainer: toolDiv,
64-
menuStyle: 'narrow'
65+
toolMenuContainer: toolDiv
6566
});
6667

6768
toolPanel.createMenuMultiButton([

0 commit comments

Comments
 (0)