Compare commits

..
2 Commits
Author SHA1 Message Date
paris c6a7e15b03 [fit addon] Restore row content after proposing geometry
- Restore `subjectRow.innerHTML`, using the `contentBuffer`
- Bump version to 0.25
2014-11-17 12:36:13 +02:00
paris 87979aeed4 Bind window to AMD module
- Bind window to Xterm AMD module
- Fix typo in fit addon
- Bump version to 0.24
2014-11-17 12:28:52 +02:00
4 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -34,7 +34,7 @@
subjectRow.style.display = 'inline';
contentBuffer = subjectRow.textContent;
contentBuffer = subjectRow.innerHTML;
subjectRow.innerHTML = ' '; /* Arbitrary character to calculate its dimensions */
characterWidth = parseInt(subjectRow.offsetWidth);
@@ -54,9 +54,11 @@
rows = parseInt(availableHeight / rowHeight);
subjectRow.innerHTML = contentBuffer; /* Replace original content */
var geometry = {
'cols': cols,
'rows': rowss
'rows': rows
};
return geometry;
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "xterm.js",
"version": "0.23",
"version": "0.25",
"ignore": ["demo", "docs", "test", ".gitignore"]
}
+2 -2
View File
@@ -51,9 +51,9 @@ copyright = u'2014, SourceLair Limited'
# built documents.
#
# The short X.Y version.
version = '0.23'
version = '0.25'
# The full version, including alpha/beta/rc tags.
release = '0.23 Alpha'
release = '0.25 Alpha'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
+1 -1
View File
@@ -36,7 +36,7 @@
/*
* Require.js is available
*/
define([], xterm);
define([], xterm.bind(window));
} else {
/*
* Plain browser environment