How do I keep the CanvasLayer in Camera range at all times

I created a Camera node under the CanvasLayer node, but when I scaled the CanvasLayer node, the overall window shifted

Yeah… so what apparently Camera2D doesn’t get influenced by scale.
I’m guessing what happend was when you changed the scale of canvas item, you probably expected the camera to change the scale as well. Apparently It does not do that(or, by default at least)
I’d suggest changing the zoom of camera when the scale changes.
probably by the inverse of scale (1/scale)

Here’s the thing, I ended up using the camera as the root node instead of the canvaslayers, solving the problem