well the project you gave me seems to use a set values to clamp the view
It does however seem to resize correctly but I can't confirm it 100%
I have tried messing around with the values and changing them to variables but I can't seem to get it right
Edit: this is what I've been trying to make work