-
+
File
New Workflow
Open
@@ -24,7 +24,7 @@
-
+
Edit
Undo
Redo
@@ -33,7 +33,7 @@
-
+
View
@@ -46,7 +46,7 @@
-
+
@@ -100,29 +111,29 @@
Settings
| - draw @@init or not, collapse all edges between 2 states + draw @@init or not + | +|
| + + | ++ collapse all edges between 2 states |
-
+
About
Visualiser & editor for Uni2work workflows
-
+
Search
Search for states, edges and their contents
-
+
-
-
+
diff --git a/editor.js b/editor.js
index 395cede..9cf2332 100644
--- a/editor.js
+++ b/editor.js
@@ -50,6 +50,8 @@ function toggleTheme() {
const mainMenu = document.getElementById('mainmenu');
var selectedMenuItem = null;
+Array.from(document.getElementsByClassName('submenu')).forEach(subMenu => subMenu.style.top = mainMenu.offsetHeight + 15);
+
/**
*
* @param {HTMLElement} menuitem
@@ -315,6 +317,8 @@ var actionIdCounter = 0;
var stateAbbreviations = [];
var newStateCoords = {'x': 0, 'y': 0}; //Initial coordinates of the next new state
+sidePanel.style.top = mainMenu.offsetHeight + 15;
+
/**
* Marks the given item as selected.
* @param {*} item The node or edge to select.