Construct table-related flow and calculate fixed layout