With that idea in mind. But then I slid the top down, and it was surprisingly rigid. Then in fitting the leg brace, it looked like a cleat might work better. And it did in this case. The leg will stick out way beyond the table if hinged(unless you pull the pin, more stuff to "do"). Now the leg slides in beside the top under a pilot berth cushion. You can't kick the leg out but a simple hook and eye could secure it further.
I think I need a broader top area on the leg for better support. I may make the top out of 1/2" plywood now that I used some cheap 3/4" birch for the mock up(way over strength required).
It was surprising how well it worked for just some quick measurements. I left plenty of space forward along the bridgedeck to get up and down and good space on sides for seating. It's just a table for two really but friends would find it useful for some a cockpit dinner.
I think it could use athwartship fiddles if you have a wake problem, so I'll add those to the real one, if I ever do the real one.