material_table_view
material_table_view copied to clipboard
TableView rowReorder messes with shrinkWrapVertical
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 incomingmaxHeightis 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
maxHeightis infinite, if it is finite instead, the height gets set tomaxHeightby theOverlaywhich 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.