Skip to content

Commit

Permalink
Fix TextTable 'autoWidth' bug (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
cronvel committed May 8, 2021
1 parent ac1b3da commit fe37289
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

v2.1.2
------

Fix TextTable 'autoWidth' bug (#177)


v2.1.1
------

Expand Down
3 changes: 0 additions & 3 deletions lib/document/TextTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ function TextTable( options ) {
this.initChildren() ;
this.computeCells() ;

if ( ! options.width ) { this.outputWidth = this.contentWidth ; }
if ( ! options.height ) { this.outputHeight = this.contentHeight ; }

// Only draw if we are not a superclass of the object
if ( this.elementType === 'TextTable' && ! options.noDraw ) { this.draw() ; }
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terminal-kit",
"version": "2.1.1",
"version": "2.1.2",
"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!",
"main": "lib/termkit.js",
"directories": {
Expand All @@ -11,12 +11,12 @@
},
"dependencies": {
"@cronvel/get-pixels": "^3.4.0",
"chroma-js": "^2.1.0",
"chroma-js": "^2.1.1",
"lazyness": "^1.2.0",
"ndarray": "^1.0.19",
"nextgen-events": "^1.3.4",
"seventh": "^0.7.40",
"string-kit": "^0.12.0",
"string-kit": "^0.12.5",
"tree-kit": "^0.7.0"
},
"scripts": {
Expand Down

0 comments on commit fe37289

Please sign in to comment.