Help with resizing Window_EquipStatus

I'm using a script to remove the "optimize" and "clear all" commands from the equip screen, which I'll post below, and it works fine. The issue is that the lower window is encroaching on the status window. I'm only using four stats, so this is a notably minor visual issue, but still, if anyone can figure what value I need to change to make the status window look right, I'll smile. I'll smile haaard.

Current Effect
bad.png

Desired Effect
good.png


Spoiler: Script in Question
Ruby:
class Scene_Equip < Scene_MenuBase
 
  alias activate_win8826 start
  def start
    activate_win8826
    command_equip
  end
    
  def create_command_window
    # Removed!
  end
    
  def create_slot_window
    wx = @status_window.width
    wy = @help_window.y + (@help_window.height / 3)
    ww = Graphics.width - @status_window.width
    @slot_window = Window_EquipSlot.new(wx, wy, ww)
    @slot_window.viewport = @viewport
    @slot_window.help_window = @help_window
    @slot_window.status_window = @status_window
    @slot_window.actor = @actor
    @slot_window.set_handler(:ok,       method(:on_slot_ok))
    @slot_window.set_handler(:cancel,   method(:on_slot_cancel))
    @slot_window.set_handler(:pagedown, method(:next_actor))
    @slot_window.set_handler(:pageup,   method(:prev_actor))
    @slot_window.y += @status_window.height - @slot_window.height
  end
    
  def on_slot_cancel
    return_scene
  end
 
  def on_actor_change
    @status_window.actor = @actor
    @slot_window.actor = @actor
    @item_window.actor = @actor
    @slot_window.activate
  end

end
Ruby:
class Window_EquipStatus
# Several lines of code here
  def window_height # Just 1 edit  this one
    fitting_height(visible_line_number) - 4 # Add - 4 or any other value only if needed
  end

  def visible_line_number # Or the line below
    return 7 # It should be 5 instead.
  end
  # more code
Hmm, so I messed around with this, and these are the results I got.

Spoiler: Return 5
1.png

Spoiler: return 5 & - 4
2.png

Spoiler: return 5 & + 48
3.png

Changing the visible line number seemed like the right idea, but looked like it ended up shifting eeeeverything. I thought tweaking the fitting height would be the solution, but the bottom of the status frame still just seems to be out of sight. Hm!! Windows can be annoying.
Ack, I feel like a jerk! X_X

Well, I got the desired effect, by ditching the "/ 3" on line 15 of the script, which I added to solve a problem that only occurred when I was using 6 stats! A problem that evaporates when I instead display only 4 stats! Well thanks kyonide for putting me in the right direction. X)

Original thread: https://forums.rpgmakerweb.com/threads/help-with-resizing-window_equipstatus.165688/