Change status window width in skill menu

It works when I set the width to 800 in the rpg scenes file like this:

Spoiler: scene skill
Scene_Skill.prototype.createStatusWindow = function() {
var wx = this._skillTypeWindow.width;
var wy = this._helpWindow.height;
var ww = 800;
var wh = this._skillTypeWindow.height;
this._statusWindow = new Window_SkillStatus(wx, wy, ww, wh);
this._statusWindow.reserveFaceImages();
this.addWindow(this._statusWindow);

But when I turn on yanfly core engine, it auto stretches the window and the bars to a width 1600. I tried to set the var w to 800 but it will just affect the hp bars through all other menus:

Spoiler: yanfly core engine
Window_SkillStatus.prototype.refresh = function() {
this.contents.clear();
if (this._actor) {
var w = 800;
var h = this.height - this.padding * 2;
if (!eval(Yanfly.Param.MenuTpGauge)) {
var y = h / 2 - this.lineHeight() * 1.5;
} else {
var y = 0;
}
var xpad = Yanfly.Param.WindowPadding + Window_Base._faceWidth;
var width = w - xpad - this.textPadding();
this.drawActorFace(this._actor, 0, 0, Window_Base._faceWidth, h);
this.drawActorSimpleStatus(this._actor, xpad, y, width);
}
};
Does someone has an idea how to solve this problem?

I've moved this thread to Plugin Support. Thank you.

Its because the function you edited on yanfly's plugin is the refresh function which only handles the contents of the status window, not the window itself..

You'd need to find on yanfly's plugin the part where it says something like

this._statusWindow = new Window_SkillStatus

and modify the width used in that function

Original thread: https://forums.rpgmakerweb.com/threads/change-status-window-width-in-skill-menu.98433/