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
This commit is contained in:
Gustavo Fuhr 2022-07-04 22:10:30 +00:00 committed by Paulo Veiga
parent 0920dab922
commit a49b870f03

View File

@ -7,6 +7,7 @@
<html> <html>
<head> <head>
<meta name="viewport" content="initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<base href="${requestScope['site.baseurl']}/static/mindplot/"> <base href="${requestScope['site.baseurl']}/static/mindplot/">
<title>${mindmap.title} | <spring:message code="SITE.TITLE"/></title> <title>${mindmap.title} | <spring:message code="SITE.TITLE"/></title>
@ -33,9 +34,25 @@
</script> </script>
</c:if> </c:if>
<style>
body {
height: 100vh;
width: 100vw;
min-width: 100vw;
min-height: 100vh;
margin: 0px;
}
#root {
height: 100%;
width: 100%;
}
</style>
</head> </head>
<body> <body>
<div id="root">
<div id="mindplot" style={mindplotStyle} className="wise-editor"></div> <div id="mindplot" style={mindplotStyle} className="wise-editor"></div>
<div id="mindplot-tooltips" className="wise-editor"></div> <div id="mindplot-tooltips" className="wise-editor"></div>
@ -66,6 +83,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<script type="text/javascript"> <script type="text/javascript">
// Hook zoom events ... // Hook zoom events ...
@ -89,7 +107,6 @@
designer.zoomToFit(); designer.zoomToFit();
}); });
} }
</script> </script>
</body> </body>
</html> </html>