Parametric modelling

Can anyone help? I’ve created a simple bathroom cabinet that’s parametric. When I change the length & width all body components change to suit. The problem I’ve got is the door hinges don’t move relative to the new sizes. Can someone tell me how I can lock the hinges to the doors so they move when the doors change size? This is a front view in x-ray view.

You can set a fixed distance from the door’s left and right edges respectively to the respective hinges. I think that would do it.