Skip to content

Commit 871968e

Browse files
committed
Merge pull request #3451 from cytoscape/copilot/document-container-sizing-need
Clarify that Cytoscape container sizing must be provided by page styles
1 parent 16524bc commit 871968e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

documentation/md/core/init.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ An instance of Cytoscape.js has a number of options that can be set on initialis
7070
### Very commonly used options
7171

7272
<span id="init-opts/container"></span>
73-
**`container`** : A HTML DOM element in which the graph should be rendered. This is unspecified if Cytoscape.js is run headlessly. The container is expected to be an empty div; the visualisation owns the div.
73+
**`container`** : A HTML DOM element in which the graph should be rendered. This is unspecified if Cytoscape.js is run headlessly. The container is expected to be an empty div with its own width and height set by the page's styles; the visualisation owns the div's contents.
7474

7575
<span id="init-opts/elements"></span>
7676
**`elements`** : An array of [elements specified as plain objects](#notation/elements-json). For convenience, this option can alternatively be specified as a promise that resolves to the elements JSON.

0 commit comments

Comments
 (0)