material_table_view icon indicating copy to clipboard operation
material_table_view copied to clipboard

TableView rowReorder messes with shrinkWrapVertical

Open NikolayNIK opened this issue 8 months ago • 0 comments

When the TableView is used with shrinkWrapVertical set to true and rowReorder:

  • is set to null, then the height of the table gets appropriately set to exactly the size of its contents regardless of whether or not the incoming maxHeight is infinite or not;
  • is used, then the height of the table only gets appropriately set to exactly the size of its contents when the incoming maxHeight is infinite, if it is finite instead, the height gets set to maxHeight by the Overlay which is the problem here.

Because of the way Overlay is implemented, there is no good way to override its actual performLayout, so that leaves the only option to override it and copy-paste the entire implementation only to change one or two lines, which is not ideal.

NikolayNIK avatar Apr 09 '25 10:04 NikolayNIK