Skip to content

Commit 03a7b07

Browse files
authored
Merge pull request #4598 from schwarmco/fix-4467
Prevent Recursive Redrawing in AdjustTableSize
2 parents bcd6cfb + 5beb998 commit 03a7b07

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/js/core/RowManager.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,10 +1063,14 @@ export default class RowManager extends CoreFeature{
10631063
//check if the table has changed size when dealing with variable height tables
10641064
if(!this.fixedHeight && initialHeight != this.element.clientHeight){
10651065
resized = true;
1066-
if(this.subscribed("table-resize")){
1067-
this.dispatch("table-resize");
1068-
}else{
1069-
this.redraw();
1066+
if(!this.redrawing){ // prevent recursive redraws
1067+
this.redrawing = true;
1068+
if(this.subscribed("table-resize")){
1069+
this.dispatch("table-resize");
1070+
}else{
1071+
this.redraw();
1072+
}
1073+
this.redrawing = false;
10701074
}
10711075
}
10721076

0 commit comments

Comments
 (0)