Adjusting Item_Rect and Cursor Together

I am having a problem over my Window_MenuStatus when I adjust the height of the menu status. Currently, I have this:

fMdYgd5.jpg


I copy and pasted the def item_rect(index) there just in case and edited it this way:

#-------------------------------------------------------------------------- # * Get Rectangle for Drawing Items #-------------------------------------------------------------------------- def item_rect(index) rect = Rect.new rect.width = item_width rect.height = item_height + 50 rect.x = index % col_max * (item_width + spacing) rect.y = index / col_max * item_height rect endThis is when the Menu_Status is in default. It works fine, but just like my screenshot, it does move the cursor weirdly. How can I make sure that the menustatus works fine and the drawn simple status is selected correctly?
By default, the item_height for this window type is defined as

  #--------------------------------------------------------------------------  # * Get Item Height  #--------------------------------------------------------------------------  def item_height    (height - standard_padding * 2) / 4  endso it is actually tied to the current height of the window. If you want to stay with this definition, you should refresh the window after adjusting its height to realign the displayed items.
It works fine now, thanks 😀

I changed it to somewhere at 96 and it works perfectly.

Original thread: https://forums.rpgmakerweb.com/threads/adjusting-item_rect-and-cursor-together.38717/