Dynamic Party Menu Size?

i've been editing the menu layout, and something bothered me about it. I didn't realize what it was until just now, but I don't like that it shows empty space when you have less than four party members.

My question is, is it possible to dynamically resize the Party window in the menu based on how many party members there are? And by that I mean stretching and shrinking the window itself, not the individual party member slots.
Your title request dynamic size.

Dynamic Size = Auto Self Resizing = stretching and shrinking window.

But your post said you don't want a window resize.
Your title request dynamic size.

Dynamic Size = Auto Self Resizing = stretching and shrinking window.

But your post said you don't want a window resize.
It was a typo. Fixed.
try this:

put this below Material and above Main

Code:
class Window_MenuStatus < Window_Selectable  def window_height    (Graphics.height/4) * [$game_party.members.size,4].min  end  def item_height    (height - standard_padding * 2) / [$game_party.members.size,4].min  endend
Thanks a lot! It works perfectly!
You're welcome!

Original thread: https://forums.rpgmakerweb.com/threads/dynamic-party-menu-size.46013/