Skip to content

Commit 942d68f

Browse files
committed
Update resize.html demo to work on IE6
1 parent 4a9977e commit 942d68f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

demo/resize.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
height: auto;
1717
overflow-y: hidden;
1818
overflow-x: auto;
19+
width: 100%;
1920
}
2021
</style>
2122
</head>
@@ -27,12 +28,11 @@ <h1>CodeMirror 2: Autoresize demo</h1>
2728
height: auto;
2829
overflow-y: hidden;
2930
overflow-x: auto;
31+
width: 100%
3032
}</textarea></form>
3133

32-
<p>By setting a single CSS property, CodeMirror can be made to
33-
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>
34+
<p>By setting a few CSS properties, CodeMirror can be made to
35+
automatically resize to fit its content.</p>
3636

3737
<script>
3838
CodeMirror.fromTextArea(document.getElementById("code"), {

0 commit comments

Comments
 (0)