MZ How to Properly Resize a Window?

I'm trying to modify the size of Window_SkillList inside the Skill Menu. So far, I'm doing this by inserting a rect on its initialize function.

JavaScript:
Window_SkillList.prototype.initialize = function(rect) {
    rect = {x: 352, y: 156, width: 350, height: 328, type: 1}; //inserted line
    Window_Selectable.prototype.initialize.call(this, rect);
    this._actor = null;
    this._stypeId = 0;
    this._data = [];
};

However, this will conflict on Window_BattleSkill, which is the window used in selecting skills during battle.

How will I do this properly?
I'm not at my PC right now to provide code for you, but look at Scene_Skill. It has a series of methods that define the rect sizes for its child windows. That'd be the standard place to specify the size of the window if you are strictly trying to follow along with the conventions of the default code.

One problem with modifying Window_SkillList's dimensions within its init method is that this window is potentially called by a number of different scenes where its dimensions might vary between scenes.
I'm not at my PC right now to provide code for you, but look at Scene_Skill. It has a series of methods that define the rect sizes for its child windows. That'd be the standard place to specify the size of the window if you are strictly trying to follow along with the conventions of the default code.

One problem with modifying Window_SkillList's dimensions within its init method is that this window is potentially called by a number of different scenes where its dimensions might vary between scenes.
Thanks for this. Unfortunately, seems like Scene_Skill.prototype.createItemWindow is obsfucated by Visustella.

Edit: What i've done is replace Scene_Skill.prototype.itemWindowRect (which is also obsfucated) and overwrite, returning a rectangle object. So far it works. I wonder if this will have its own problems?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-properly-resize-a-window.165152/