Fix resize issue. Need to work on centering the node.

This commit is contained in:
Paulo Veiga
2011-08-26 19:41:50 -03:00
parent 421cbdbb61
commit 26759bd437
11 changed files with 88 additions and 109 deletions

View File

@@ -106,7 +106,7 @@
</div>
</fieldset>
</div>
<div id="zoom" class="buttonContainer" title="Zoom In">
<div id="zoom" class="buttonContainer" title="Zoom">
<fieldset>
<div id="zoomIn" class="button" title="Zoom In">
<div class="toolbarLabel">

View File

@@ -196,18 +196,18 @@ function buildMindmapDesigner() {
// core.Monitor.setInstance(monitor);
var container = $('mindplot');
// container.setStyles();
// Initialize Editor ...
var screenWidth = window.getWidth();
var screenHeight = window.getHeight();
container.setStyles({
height: parseInt(screen.height),
width: parseInt(screen.width)
});
// header - footer
screenHeight = screenHeight - 115;
// body margin ...
editorProperties.width = screenWidth;
editorProperties.height = screenHeight;
designer = new mindplot.MindmapDesigner(editorProperties, container);
designer.setViewPort({
height: parseInt(window.innerHeight - 150),
width: parseInt(window.innerWidth - 200)
});
if (mindplot.collaboration.CollaborationManager.getInstance().isCollaborationFrameworkAvailable()) {
buildCollaborativeMindmapDesigner();