Anyone have a way to uncrop battle portraits?

In game I'm going for this window box effect for portraits but when in battle it automatically crops the window out.

Out of battle
Screenshot 2025-06-17 001118.png


In Battle

Screenshot 2025-06-17 001038.png

I think they can be displayed fully if the window is big enough.

Scene_Battle.prototype.windowAreaHeight = function() {
return this.calcWindowHeight(4, true);
};

This is the default code for the window height. You can change the number to 5, or simply return a number directly.

Original thread: https://forums.rpgmakerweb.com/threads/anyone-have-a-way-to-uncrop-battle-portraits.178382/