Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a782972e3 | ||
|
|
d12406bedc |
+4
-3
@@ -12,7 +12,7 @@
|
|||||||
* of columns)
|
* of columns)
|
||||||
*/
|
*/
|
||||||
Terminal.prototype.fit = function () {
|
Terminal.prototype.fit = function () {
|
||||||
var container = this.element.parentElement,
|
var container = this.rowContainer,
|
||||||
subjectRow = this.rowContainer.firstElementChild,
|
subjectRow = this.rowContainer.firstElementChild,
|
||||||
rows = parseInt(container.offsetHeight / subjectRow.offsetHeight),
|
rows = parseInt(container.offsetHeight / subjectRow.offsetHeight),
|
||||||
characterWidth,
|
characterWidth,
|
||||||
@@ -22,7 +22,8 @@ Terminal.prototype.fit = function () {
|
|||||||
characterWidth = parseInt(subjectRow.offsetWidth / this.cols);
|
characterWidth = parseInt(subjectRow.offsetWidth / this.cols);
|
||||||
subjectRow.style.display = '';
|
subjectRow.style.display = '';
|
||||||
|
|
||||||
cols = parseInt(container.offsetWidth / characterWidth);
|
cols = container.offsetWidth / characterWidth;
|
||||||
|
cols = parseInt(cols);
|
||||||
|
|
||||||
this.resize(cols, rows);
|
this.resize(cols, rows);
|
||||||
}
|
};
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "xterm.js",
|
"name": "xterm.js",
|
||||||
"version": "0.12",
|
"version": "0.13",
|
||||||
"ignore": ["demo", "docs", "test", ".gitignore"]
|
"ignore": ["demo", "docs", "test", ".gitignore"]
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -44,16 +44,16 @@ master_doc = 'index'
|
|||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'xterm.js'
|
project = u'xterm.js'
|
||||||
copyright = u'2014, sourceLair Limited'
|
copyright = u'2014, SourceLair Limited'
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '0.11'
|
version = '0.13'
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '0.11 Alpha'
|
release = '0.13 Alpha'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
Reference in New Issue
Block a user