[VX ACE] Fixing text stretching in Window_ItemList

Hello, I am seeking help to fix item stretching in Window_ItemList. Here is a picture of what I mean:

Ot2fAWM.png


As you can see, everything but "Bridge of the Alliance" in this item select window is fine. I tried to alter Window_KeyItem and Window_ItemList but all I could get is to modify the text position, which I don't want to change. Anyone have any idea how to fix this?
Do you have this in your project?
https://forums.rpgmakerweb.com/index.php?threads/text-cache.1001/
Code:
class Window_KeyItem
  def draw_item(index)
    item = @data[index]
    if item
      rect = item_rect(index)
      rect.width += 500
      draw_item_name(item, rect.x, rect.y, enable?(item))
      draw_item_number(rect, item)
    end
  end
end
This one?
They forgot that the draw_item_name method takes a width argument too, and if it is not supplied, 172 will be used by default for some odd reason.
This is how that method should have looked like::
Spoiler
Code:
  def draw_item(index)
    item = @data[index]
    if item
      rect = item_rect(index)
      rect.width -= 4
      draw_item_name(item, rect.x, rect.y, enable?(item), rect.width)
      draw_item_number(rect, item)
    end
  end
They forgot that the draw_item_name method takes a width argument too, and if it is not supplied, 172 will be used by default for some odd reason.
This is how that method should have looked like::
Spoiler
Code:
  def draw_item(index)
    item = @data[index]
    if item
      rect = item_rect(index)
      rect.width -= 4
      draw_item_name(item, rect.x, rect.y, enable?(item), rect.width)
      draw_item_number(rect, item)
    end
  end

Thanks, it works!

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-fixing-text-stretching-in-window_itemlist.109564/