]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
[fit addon] Restore row content after proposing geometry
authorparis <paris@sourcelair.com>
Mon, 17 Nov 2014 10:36:13 +0000 (12:36 +0200)
committerparis <paris@sourcelair.com>
Mon, 17 Nov 2014 10:36:13 +0000 (12:36 +0200)
- Restore `subjectRow.innerHTML`, using the `contentBuffer`
- Bump version to 0.25

addons/fit/fit.js
bower.json
docs/conf.py

index 0700502f74e2d40005253dd1a8c27dbd08bb5f07..da57644dd262f6a7e8afc8682ce49a0b103ef8a9 100644 (file)
@@ -34,7 +34,7 @@
 
         subjectRow.style.display = 'inline';
 
-        contentBuffer = subjectRow.textContent;
+        contentBuffer = subjectRow.innerHTML;
 
         subjectRow.innerHTML = '&nbsp;'; /* Arbitrary character to calculate its dimensions */
         characterWidth = parseInt(subjectRow.offsetWidth);
@@ -54,6 +54,8 @@
 
         rows = parseInt(availableHeight / rowHeight);
         
+        subjectRow.innerHTML = contentBuffer; /* Replace original content */
+        
         var geometry = {
                 'cols': cols,
                 'rows': rows
index 49a4b497802b5fd05e458835fa084cf926248199..3658d46ed2966817fbae263e50fafc5bff9cc6ad 100644 (file)
@@ -1,5 +1,5 @@
 {
   "name": "xterm.js",
-  "version": "0.24",
+  "version": "0.25",
   "ignore": ["demo", "docs", "test", ".gitignore"]
 }
index a815d75d39017b6261c9e19ced141b643d82f53c..877829c3d44a03b32e5a5f7a0e1c0f215ac6d76e 100644 (file)
@@ -51,9 +51,9 @@ copyright = u'2014, SourceLair Limited'
 # built documents.
 #
 # The short X.Y version.
-version = '0.24'
+version = '0.25'
 # The full version, including alpha/beta/rc tags.
-release = '0.24 Alpha'
+release = '0.25 Alpha'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.