Skip to content

Commit 605d25c

Browse files
Merge remote-tracking branch 'origin/master' into UtilizeRootInActions
Conflicts: shelly/filewell/static/filewell/src/actions/__tests__/FolderActions-test.js shelly/filewell/static/filewell/src/stores/DirectoryStore.js
2 parents 4ef0882 + 73e4da1 commit 605d25c

File tree

4 files changed

+37
-6
lines changed

4 files changed

+37
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
old-style.css

test-dashboard/toolpanel-dashboard/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<link type="text/css" rel="stylesheet" href="./../../shelly/shelly/static/css/tipsy.css" />
1010

1111
<!-- ToolPanel Required Plotly CSS -->
12-
<link rel="stylesheet" type="text/css" href="workspace-style.css"/>
1312
<link rel="stylesheet" type="text/css" href="./../../shelly/shelly/static/css/plotly.css"/>
13+
<link rel="stylesheet" type="text/css" href="old-style.css">
1414
<link rel="stylesheet" type="text/css" href="./../../shelly/shelly/static/plotlycss/fonts/unified/icons.css" />
1515

1616
</head>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
node-sass ../../shelly/shelly/static/css/style.scss > old-style.css

test-dashboard/toolpanel-dashboard/ui.js

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,37 @@ var Plotly = window.Plotly;
44
var ToolPanel = window.ToolPanel;
55
var divs = [];
66

7+
function createRemoveButton () {
8+
var removeButton = document.createElement('button');
9+
removeButton.innerHTML = 'remove toolpanel';
10+
removeButton.id = 'removeButton';
11+
document.body.appendChild(removeButton);
12+
13+
removeButton.onclick = function () {
14+
divs[0].toolPanel.remove();
15+
};
16+
}
17+
718
function createPlot (divId) {
819
var containerDiv = document.getElementById('main');
920
var graphDiv = document.createElement('div');
21+
var toolDiv = document.createElement('div');
22+
containerDiv.style.width = '100%';
23+
containerDiv.style.height = '100%';
24+
containerDiv.style.clear = 'both';
25+
1026
graphDiv.id = divId;
11-
graphDiv.style.width = '45%';
27+
graphDiv.style.width = '80%';
1228
graphDiv.style.display = 'inline-block';
13-
graphDiv.style.margin = '10px';
29+
graphDiv.style.margin = '0px';
1430
graphDiv.style.position = 'relative';
31+
graphDiv.style.verticalAlign = 'top';
32+
33+
toolDiv.style.verticalAlign = 'top';
34+
toolDiv.style.width = '130px';
35+
toolDiv.style.display = 'inline-block';
36+
37+
containerDiv.appendChild(toolDiv);
1538
containerDiv.appendChild(graphDiv);
1639

1740
var trace1 = {
@@ -35,12 +58,16 @@ function createPlot (divId) {
3558
popoverContainer: containerDiv
3659
});
3760

38-
graphDiv.toolPanel.makeMenu();
61+
graphDiv.toolPanel.makeMenu({
62+
toolMenuContainer: toolDiv
63+
});
3964

40-
divs.push(graphDiv);
65+
divs.push(graphDiv, toolDiv);
4166

4267
}
4368

44-
['one', 'two'].forEach(function (index) {
69+
['one'].forEach(function (index) {
4570
createPlot(index);
4671
});
72+
73+
createRemoveButton();

0 commit comments

Comments
 (0)