Skip to content

Commit

Permalink
update renderer upon width change
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Dec 1, 2018
1 parent 24f1332 commit 9ed54ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/EngineRanking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,8 @@ export default class EngineRanking extends ACellTableSection<RenderColumn> imple
const col = (isMultiLevelColumn(c) && !c.getCollapsed()) ? new MultiLevelRenderColumn(c, index, this.renderCtx, this.roptions.flags) : new RenderColumn(c, index, this.renderCtx, this.roptions.flags);

c.on(`${Column.EVENT_WIDTH_CHANGED}.body`, () => {
// replace myself upon width change since we renderers are allowed to
col.renderers = this.ctx.createRenderer(c);
this.delayedUpdateColumnWidths();
});
c.on(`${ValueColumn.EVENT_DATA_LOADED}.hist`, () => this.updateHist(c));
Expand Down

0 comments on commit 9ed54ad

Please sign in to comment.