From a49b870f03499e5e0879ce29ad9d478d8ce1bcec Mon Sep 17 00:00:00 2001 From: Gustavo Fuhr Date: Mon, 4 Jul 2022 22:10:30 +0000 Subject: [PATCH] Merged in ray-develop (pull request #14) PR ray-develop -> develop * fix view and public mode, initial scale and body size Approved-by: Paulo Veiga --- .../src/main/webapp/jsp/mindmapViewonly.jsp | 125 ++++++++++-------- 1 file changed, 71 insertions(+), 54 deletions(-) diff --git a/wise-webapp/src/main/webapp/jsp/mindmapViewonly.jsp b/wise-webapp/src/main/webapp/jsp/mindmapViewonly.jsp index 34217c90..3e6cbe8b 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapViewonly.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapViewonly.jsp @@ -7,6 +7,7 @@ + ${mindmap.title} | <spring:message code="SITE.TITLE"/> @@ -33,63 +34,79 @@ + + +
+
+
+ + + + + + +
+ :${mindmap.creator.fullName} + :${mindmap.title} +
+ + + +
+
+ + +
+ +
+
+
+
-
-
+ - -
-
- - -
- -
-
-
- - + const zoomOutButton = document.getElementById('zoom-minus'); + if (zoomOutButton) { + zoomOutButton.addEventListener('click', () => { + designer.zoomOut(); + }); + } + + const position = document.getElementById('position'); + if (position) { + position.addEventListener('click', () => { + designer.zoomToFit(); + }); + } +