Skip to content

Commit fecfdc4

Browse files
tweak test-dashboard
1 parent c3b5e34 commit fecfdc4

File tree

1 file changed

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

1 file changed

+5
-3
lines changed

test-dashboard/toolpanel-dashboard/ui.js

Lines changed: 5 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,15 @@ function createPlot (divId) {
5455

5556
graphDiv.toolPanel = toolPanel = new ToolPanel(Plotly, graphDiv, {
5657
standalone: true,
57-
popoverContainer: containerDiv
58+
popoverContainer: containerDiv,
59+
menuStyle: 'minimal',
60+
orientation: 'horizontal'
5861
});
5962

6063
window.toolPanel = graphDiv.toolPanel;
6164

6265
graphDiv.toolPanel.makeMenu({
63-
toolMenuContainer: toolDiv,
64-
menuStyle: 'narrow'
66+
toolMenuContainer: toolDiv
6567
});
6668

6769
toolPanel.createMenuMultiButton([

0 commit comments

Comments
 (0)