Lines Matching refs:container

8 GraphViewer = function(container, xmlNode, graphConfig)  argument
10 this.init(container, xmlNode, graphConfig);
118 GraphViewer.prototype.init = function(container, xmlNode, graphConfig) argument
144 this.initialWidth = (container != null) ? container.style.width : null;
165 if (container != null)
169 this.graph = new Graph(container);
183 else if (container.style.padding == '')
206 this.container.style.backgroundColor =
224 container.style.cursor = 'pointer';
433 this.graph.container.style.overflow == 'auto';
450 container.setAttribute('title', this.graphConfig.title);
512 if (this.checkVisibleState && container.offsetWidth == 0 && typeof MutObs !== 'undefined')
515 var par = this.getObservableParent(container);
519 if (container.offsetWidth > 0)
540 GraphViewer.prototype.getObservableParent = function(container) argument
542 var node = container.parentNode;
579 document.body.appendChild(graph.container);
587 document.body.removeChild(graph.container);
712 this.graph.container.style.width = '';
713 this.graph.container.style.height = '';
717 this.graph.container.style.width = this.initialWidth;
740 var container = this.graph.container;
746 container.style.overflow = 'hidden';
750 container.style.overflow = 'visible';
763 if (tmp.width + 2 * this.graph.border > container.offsetWidth - 2)
765 container.style.overflow = 'auto';
769 container.style.overflow = 'hidden';
774 container.style.overflow = 'visible';
779 var r = container.getBoundingClientRect();
798 this.toolbar.style.width = Math.max(this.minToolbarWidth, container.offsetWidth) + 'px';
809 this.toolbar.style.width = Math.max(this.minToolbarWidth, container.offsetWidth) + 'px';
831 var cachedOffsetWidth = container.offsetWidth;
838 if (container.style.overflow == 'auto')
840 container.style.overflow = 'hidden';
847 if (this.center || !(this.graphConfig.resize != false || container.style.height == ''))
854 if (this.graphConfig.resize != false || container.style.height == '')
856 this.updateContainerHeight(container, Math.max(this.minHeight,
886 new ResizeSensor(this.graph.container, updateOverflow);
898 if (this.widthIsEmpty && !(container.style.height != '' && this.autoFit))
900 this.updateContainerWidth(container, bounds.width + 2 * this.graph.border);
903 if (this.graphConfig.resize != false || container.style.height == '')
905 …this.updateContainerHeight(container, Math.max(this.minHeight, bounds.height + 2 * this.graph.bord…
933 new ResizeSensor(this.graph.container, doResize);
946 var prev = container.style.minWidth;
950 container.style.minWidth = '100%';
954 ((container.style.height != '' && this.autoFit) ? container.offsetHeight : undefined);
956 if (container.offsetWidth > 0 && origin == null && this.allowZoomOut && (this.allowZoomIn ||
957 bounds.width + 2 * this.graph.border > container.offsetWidth ||
969 …else if (!this.widthIsEmpty && origin == null && !(this.graphConfig.resize != false || container.s…
979 lastOffsetWidth = container.offsetWidth;
982 container.style.minWidth = prev
1021 GraphViewer.prototype.updateContainerWidth = function(container, width) argument
1023 container.style.width = width + 'px';
1029 GraphViewer.prototype.updateContainerHeight = function(container, height) argument
1034 container.style.height = height + 'px';
1125 var container = this.graph.container;
1126 var initialCursor = this.graph.container.style.cursor;
1130 container.style.marginBottom = this.toolbarHeight + 'px';
1134 container.style.marginTop = this.toolbarHeight + 'px';
1138 var toolbar = container.ownerDocument.createElement('div');
1203 …mxEvent.addListener(this.graph.container, (mxClient.IS_POINTER) ? 'pointermove' : 'mousemove', mxU…
1250 this.scrollLeft = graph.container.scrollLeft;
1251 this.scrollTop = graph.container.scrollTop;
1258 if ((Math.abs(this.scrollLeft - graph.container.scrollLeft) < tol &&
1259 Math.abs(this.scrollTop - graph.container.scrollTop) < tol) &&
1337 pageInfo = container.ownerDocument.createElement('div');
1571 var filename = container.ownerDocument.createElement('div');
1583 var prevBorder = container.style.border;
1588 Math.max(this.minToolbarWidth, container.offsetWidth) + 'px';
1593 var r = container.getBoundingClientRect();
1622 container.style.border = '1px solid #d0d0d0';
1640 container.style.border = prevBorder;
1649 if (source == container || source == toolbar || source == layersDialog)
1668 container.appendChild(toolbar);
1674 mxEvent.addListener(container, 'mouseenter', enter);
1689 }).observe(container)
1722 while (source != graph.container && source != null && href == null)
1948 var lightbox = graph.container;
2053 if (this.showTitleAsTooltip && this.graph != null && this.graph.container != null)
2055 this.graph.container.setAttribute('title', title);