Fix horizontal scrolling oddness

Giving the hidden text area a fixed position was confusing webkit and
making scroll behavior really odd. Using position: absolute and setting
the z-index so it's behind the editor seems to make scrolling behave
more normally.
This commit is contained in:
Nathan Sobo
2012-01-27 19:12:42 -08:00
parent 7f97747acb
commit e0c66c5caf

View File

@@ -6,6 +6,7 @@
background: #333;
color: white;
overflow-y: scroll;
overflow-x: auto;
}
.editor pre {
@@ -31,9 +32,11 @@
}
.editor .hidden-input {
position: fixed;
position: absolute;
z-index: -1;
top: 0;
left: 100%;
left: 0;
opacity: 0;
}
.editor .selection {