Skip to content

Commit

Permalink
Merge commit 'f90db543a374cb886d3d825c3021115a57515a8a'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnspackman committed Jul 2, 2024
2 parents 93b4a42 + f90db54 commit 11ec036
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions source/class/qxl/datagrid/DataGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ qx.Class.define("qxl.datagrid.DataGrid", {
* Event handler for changes in the data source's size
*/
__onDataSourceChangeSize() {
this.forceUpdate();
},

/**
* Forces the grid to fully update it's display. Use sparingly.
*/
forceUpdate() {
this.getQxObject("widgetPane").invalidateAll();
this.__sizeCalculator.invalidate();
this.updateWidgets();
Expand Down
4 changes: 3 additions & 1 deletion source/class/qxl/datagrid/ui/WidgetPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ qx.Class.define("qxl.datagrid.ui.WidgetPane", {
if (child) {
this.__widgetFactory.unbindWidget(child);
child.setUserData("qxl.datagrid.cellData", null);
this._remove(child);
if (child.getLayoutParent() === this) {
this._remove(child);
}
if (this.getShouldDiscardWidgets()) {
this.__widgetFactory.disposeWidget(child);
}
Expand Down

0 comments on commit 11ec036

Please sign in to comment.