Skip to content

Commit

Permalink
fix regresion in textarea layout caused by the luke cotter performanc…
Browse files Browse the repository at this point in the history
…e improvement PR
  • Loading branch information
olifolkerd committed Feb 18, 2024
1 parent 626ff0f commit e936db7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
8 changes: 3 additions & 5 deletions dist/js/tabulator_esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -25383,13 +25383,11 @@ class RowManager extends CoreFeature{

//redraw table
redraw (force){
const resized = this.adjustTableSize();
this.adjustTableSize();
this.table.tableWidth = this.table.element.clientWidth;

if(!force){
if(resized) {
this.reRenderInPosition();
}
if(!force){
this.reRenderInPosition();
this.scrollHorizontal(this.scrollLeft);
}else {
this.renderTable();
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tabulator_esm.js.map

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions src/js/core/RowManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1109,13 +1109,11 @@ export default class RowManager extends CoreFeature{

//redraw table
redraw (force){
const resized = this.adjustTableSize();
this.adjustTableSize();
this.table.tableWidth = this.table.element.clientWidth;

if(!force){
if(resized) {
this.reRenderInPosition();
}
if(!force){
this.reRenderInPosition();
this.scrollHorizontal(this.scrollLeft);
}else{
this.renderTable();
Expand Down

0 comments on commit e936db7

Please sign in to comment.