79730325

Date: 2025-08-08 23:56:46
Score: 4.5
Natty:
Report link

Did you solve the issue? My solution partially works for my case, hence I am still looking for a definitive solution.

So, define the delegate in the HorizontalHeaderView as suggested in the question you've mentioned.

In the TableView, implement a columnWidthProvider function such as the one bellow:

columnWidthProvider: function(column) {
                if (!isColumnLoaded(column))
                    return -1;
                let headerWidth = horizontalHeader.implicitColumnWidth(column);
                let dataWidth = tableView.implicitColumnWidth(column);
                // limit the minimum width to the header width
                let columnWidth = Math.max(headerWidth, dataWidth);
                // and optionally limit the maximum width to 200
                return Math.min(columnWidth, 200);
            }

The problem with this solution is that it prevents manual resizing of the columns.

Reasons:
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (3): Did you solve the
  • RegEx Blacklisted phrase (1.5): solve the issue?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you solve the is
  • Low reputation (1):
Posted by: Bruno