Uh oh!
There was an error while loading. Please reload this page.
Issue 797 - Misaligned rows after callback - #798
Conversation
| ] | ||
| ), | ||
| dict(merge_duplicate_headers=True), | ||
| # dict(fixed_rows=dict(headers=True)), |
There was a problem hiding this comment.
Commenting out certain, more redundant, scenarios. With the above, this reduces the number of tests combinations from 126 to 40, which is more palatable in terms of CI time.
| style_table | ||
| ); | ||
| if (fixed_columns || fixed_rows) { | ||
| this.handleResizeIf(...R.values(this.props)); |
There was a problem hiding this comment.
Don't attempt resize if nothing is fixed. Otherwise, resize on any prop change. Most props can require a recalculation due to interactions with other props. Even active_cell could cause the border width to change through a conditional style, etc. This will have a performance impact as resizing will happen more often, but the bulk of the cost (relayout) would be happening anyway.
Better to be right slightly slower than to be wrong slightly faster..
Uh oh!
There was an error while loading. Please reload this page.
| app.layout = Div([Button(id="btn", children=["Update"]), table]) | ||
| @app.callback( | ||
| [Output("table", key) for key in callback_props.keys()], |
Fixes#797