Camera FramingBehavior

Hi there,
I’m wondering if it is possible to adjust the y coordinate of a camera with framing behavior.
For example:
The camera will frame like this:

I’m looking for a method to automatically adjust the y coordinate like this:

I’ve tried setPosition again after “setTarget”, but it didn’t work.
Thank you so much!

something like that?