Compare commits

...
3 Commits
Author SHA1 Message Date
paris fb1c484224 Added top: 0 to helpers 2014-04-10 21:45:54 +00:00
paris 59ebbbaaf0 Fix helper position 2014-04-10 18:48:36 +00:00
paris 6e6b5dad8c fit() uses offset height and width now 2014-04-10 18:36:37 +00:00
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "xterm.js",
"version": "0.9",
"version": "0.9.2",
"ignore": ["demo", "docs", "test", ".gitignore"]
}
+6
View File
@@ -40,12 +40,18 @@
color: #fff;
outline: none;
font-family: courier-new, courier, monospace;
position: relative;
}
.xterm .terminal-cursor {
background-color: #fff;
}
.xterm .xterm-helpers {
position: absolute;
top: 0;
}
.xterm .xterm-helper-textarea {
opacity: 0;
width: 0;
+2 -2
View File
@@ -2537,7 +2537,7 @@ Terminal.prototype.resize = function(x, y) {
Terminal.prototype.fit = function () {
var container = this.element.parentElement,
subjectRow = this.rowContainer.firstElementChild,
rows = parseInt(container.scrollHeight / subjectRow.offsetHeight),
rows = parseInt(container.offsetHeight / subjectRow.offsetHeight),
characterWidth,
cols;
@@ -2545,7 +2545,7 @@ Terminal.prototype.fit = function () {
characterWidth = parseInt(subjectRow.offsetWidth / this.cols);
subjectRow.style.display = '';
cols = parseInt(container.scrollWidth / characterWidth);
cols = parseInt(container.offsetWidth / characterWidth);
this.resize(cols, rows);
}