Camera display issue

Hi !
I’m trying to add a camera to another window like this :

       
self.avatarWindow = self.openWindow(makeCamera = False)
self.avatarRender = NodePath('avatarRender')
myCamera3d = self.makeCamera(self.avatarWindow)
myCamera3d.reparentTo(self.avatarRender)
self.avatar.reparent_to(self.avatarRender)

But when I resize the window, my avatar doesn’t resize properly like if it was in the main window… (reparent to render)

Edit : In fact my avatar take a % of the screen in height and length and I want it to resize with the original height and length of my avatar doesn’t appear squashed (just like render2d to aspect2d)