Skip to content

Commit fe37289

Browse files
committed
Fix TextTable 'autoWidth' bug (#177)
1 parent ac1b3da commit fe37289

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
v2.1.2
3+
------
4+
5+
Fix TextTable 'autoWidth' bug (#177)
6+
7+
28
v2.1.1
39
------
410

lib/document/TextTable.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ function TextTable( options ) {
115115
this.initChildren() ;
116116
this.computeCells() ;
117117

118-
if ( ! options.width ) { this.outputWidth = this.contentWidth ; }
119-
if ( ! options.height ) { this.outputHeight = this.contentHeight ; }
120-
121118
// Only draw if we are not a superclass of the object
122119
if ( this.elementType === 'TextTable' && ! options.noDraw ) { this.draw() ; }
123120
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "terminal-kit",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "256 colors, keys and mouse, input field, progress bars, screen buffer (including 32-bit composition and image loading), text buffer, and many more... Whether you just need colors and styles, build a simple interactive command line tool or a complexe terminal app: this is the absolute terminal lib for Node.js!",
55
"main": "lib/termkit.js",
66
"directories": {
@@ -11,12 +11,12 @@
1111
},
1212
"dependencies": {
1313
"@cronvel/get-pixels": "^3.4.0",
14-
"chroma-js": "^2.1.0",
14+
"chroma-js": "^2.1.1",
1515
"lazyness": "^1.2.0",
1616
"ndarray": "^1.0.19",
1717
"nextgen-events": "^1.3.4",
1818
"seventh": "^0.7.40",
19-
"string-kit": "^0.12.0",
19+
"string-kit": "^0.12.5",
2020
"tree-kit": "^0.7.0"
2121
},
2222
"scripts": {

0 commit comments

Comments
 (0)