MV Issue with resizing choice window (Hime's HiddenChoiceCondition)

I've been using Hime's HiddenChoiceCondition plugin for my project but I found an "oversight". I want to use the dim background for my choice options, but after I hide one option and the code goes back to the choice window, the window size doesn't update. The option IS hidden, but if the text was longer than the remaining options, the box stays longer.
This issue doesn't happen with the normal window, only with the dim one. Also, renaming the hidden options with something shorter doesn't fix the window.

I checked the plugin's code and it DOES update the window, so I don't know what the problem might be. Does anyone have a clue on how to solve this?

Edit: I found the solution. This is the second time I found the solution to a problem right after making a thread after hours of fruitless work. Anyway, I managed to create a small code to add as an extra plugin that fixes the window size.

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-resizing-choice-window-himes-hiddenchoicecondition.182483/