Skip to content

Commit

Permalink
GridView, TreeGridView: fix issue where new customColumnWidths was no…
Browse files Browse the repository at this point in the history
…t always passed to headers
  • Loading branch information
joshtynjala committed Apr 11, 2024
1 parent e06fa26 commit 5f0bd97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/feathers/controls/GridView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,9 @@ class GridView extends BaseScrollContainer implements IIndexSelector implements
if (layoutInvalid) {
this._headerResizeContainer.mouseEnabled = this._resizableColumns;
this._headerResizeContainer.mouseChildren = this._resizableColumns;
}

if (dataInvalid || layoutInvalid) {
var oldIgnoreHeaderLayoutChanges = this._ignoreHeaderLayoutChanges;
this._ignoreHeaderLayoutChanges = true;
this._headerContainerLayout.customColumnWidths = this._customColumnWidths;
Expand Down
3 changes: 3 additions & 0 deletions src/feathers/controls/TreeGridView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,9 @@ class TreeGridView extends BaseScrollContainer implements IDataSelector<Dynamic>
if (layoutInvalid) {
this._headerResizeContainer.mouseEnabled = this._resizableColumns;
this._headerResizeContainer.mouseChildren = this._resizableColumns;
}

if (dataInvalid || layoutInvalid) {
var oldIgnoreHeaderLayoutChanges = this._ignoreHeaderLayoutChanges;
this._ignoreHeaderLayoutChanges = true;
this._headerContainerLayout.customColumnWidths = this._customColumnWidths;
Expand Down

0 comments on commit 5f0bd97

Please sign in to comment.