[composer] Recalculate table size when margin or grid width changes