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

@@ -302,20 +302,17 @@ function buildMindmapDesigner() {
var monitor = new core.Monitor($('msgLoggerContainer'), $('msgLogger'));
core.Monitor.setInstance(monitor);
var container = $('mindplot');
// Initialize Editor ...
var container = $('mindplot');
// container.setStyles({
// height: screen.height - 151,
// width: screen.width
// });
var screenWidth = window.getWidth();
var screenHeight = window.getHeight();
// Position node ...
// header - footer
screenHeight = screenHeight - 90 - 61;
// body margin ...
editorProperties.width = screenWidth;
editorProperties.height = screenHeight;
container.setStyles({
height: window.getHeight() - 151,
width: window.getWidth()
});
designer = new mindplot.MindmapDesigner(editorProperties, container);
designer.loadFromXML(mapId, mapXml);