From 585ac0d35c3a54619d06308d276207a8e4eeb488 Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Fri, 28 Oct 2022 09:16:17 +0300 Subject: [PATCH] orc web - new view action : expand full screen/ compress --- Sources/pyOpenRPA/Resources/Web/orpa/orc.js | 10 ++++++++++ Sources/pyOpenRPA/Resources/Web/orpa/orc.xhtml | 11 +++++++---- changelog.md | 1 + 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Sources/pyOpenRPA/Resources/Web/orpa/orc.js b/Sources/pyOpenRPA/Resources/Web/orpa/orc.js index 22774de9..48512cb6 100755 --- a/Sources/pyOpenRPA/Resources/Web/orpa/orc.js +++ b/Sources/pyOpenRPA/Resources/Web/orpa/orc.js @@ -60,6 +60,16 @@ $(document).ready(function() { } throw new Error("Unable to copy obj! Its type isn't supported."); } + orpa_workspace_expand=function(){ + $("#orpa-workspace")[0].style.setProperty('width', "inherit", "important") + $("#orpa-workspace-expand")[0].style.setProperty('display', "none") + $("#orpa-workspace-compress")[0].style.setProperty('display', "") + } + orpa_workspace_compress=function(){ + $("#orpa-workspace")[0].style.setProperty('width', "") + $("#orpa-workspace-expand")[0].style.setProperty('display', "") + $("#orpa-workspace-compress")[0].style.setProperty('display', "none") + } //For data storage key mGlobal["DataStorage"] = {} // Clear the session cookie diff --git a/Sources/pyOpenRPA/Resources/Web/orpa/orc.xhtml b/Sources/pyOpenRPA/Resources/Web/orpa/orc.xhtml index d25cd713..44404e4d 100755 --- a/Sources/pyOpenRPA/Resources/Web/orpa/orc.xhtml +++ b/Sources/pyOpenRPA/Resources/Web/orpa/orc.xhtml @@ -81,14 +81,17 @@ {% include 'header.xhtml' %} -
+
-
+