Keep cleaning and refactoring styles and samples.

This commit is contained in:
Paulo Veiga
2012-02-02 00:13:29 -03:00
parent b37ecd8c2c
commit b6dd7712f9
23 changed files with 317 additions and 1276 deletions

View File

@@ -18,13 +18,19 @@
var designer = null;
function buildDesigner(viewMode) {
function buildDesigner(viewMode, containerSize) {
var container = $('mindplot');
container.setStyles({
height: parseInt(screen.height),
width: parseInt(screen.width)
});
// Set workspace size ...
if (!containerSize) {
containerSize = {
// Set workspace screen size as default. In this way, resize issues are solved.
height: parseInt(screen.height),
width: parseInt(screen.width)
}
}
container.setStyles(containerSize);
var editorProperties = {zoom:0.85,saveOnLoad:true,collab:'standalone',readOnly:viewMode};
designer = new mindplot.Designer(editorProperties, container);