We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a9977e commit 942d68fCopy full SHA for 942d68f
demo/resize.html
@@ -16,6 +16,7 @@
16
height: auto;
17
overflow-y: hidden;
18
overflow-x: auto;
19
+ width: 100%;
20
}
21
</style>
22
</head>
@@ -27,12 +28,11 @@ <h1>CodeMirror 2: Autoresize demo</h1>
27
28
29
30
31
+ width: 100%
32
}</textarea></form>
33
-<p>By setting a single CSS property, CodeMirror can be made to
-automatically resize to fit the content. Use <code>max-height</code>
34
-to prevent it from growing past a given point (on halfway modern
35
-browsers).</p>
+<p>By setting a few CSS properties, CodeMirror can be made to
+automatically resize to fit its content.</p>
36
37
<script>
38
CodeMirror.fromTextArea(document.getElementById("code"), {
0 commit comments