(RPG MV)I have a problem about create Window_BattleStatus in horizontal

I want my game to have 7battleMembers and try to make battleStatus like this

This is the horizontal battleStatus in game that i want
Horizontal_Win.png


I try to create it but the result is like this
It's not go in a horizontal way but vertical way

My_Battlestatus.png


This is my code. Can you help me to have my battleStatus go in horizontal way like the 1st Pic?
JavaScript:
//-----------------------------------------------------------------------------
// Window_BattleStatus
//
// The window for displaying the status of party members on the battle screen.

function Window_BattleStatus() {
this.initialize.apply(this, arguments);
}

Window_BattleStatus.prototype = Object.create(Window_Selectable.prototype);
Window_BattleStatus.prototype.constructor = Window_BattleStatus;

Window_BattleStatus.prototype.initialize = function() {
var width = this.windowWidth();
var height = this.windowHeight();
var x = Graphics.boxWidth - width;
var y = Graphics.boxHeight - height;
Window_Selectable.prototype.initialize.call(this, x, y, width, height);
this.refresh();
this.openness = 0;
};

Window_BattleStatus.prototype.windowWidth = function() {
return Graphics.boxWidth;
};

Window_BattleStatus.prototype.windowHeight = function() {
return 178;
};

Window_BattleStatus.prototype.maxItems = function() {
return $gameParty.battleMembers().length;
};

Window_BattleStatus.prototype.maxPageRows = function() {
return 1;
};

Window_BattleStatus.prototype.numVisibleRows = function() {
return 1;
};

Window_BattleStatus.prototype.maxCols = function() {
return 3;
};

Window_BattleStatus.prototype.drawBattleActorHp = function(actor, x, y, width) {
width = width || 186;
this.contents.fontBold = true;
this.drawText(TextManager.hpA, x, y, 44);
this.contents.fontBold = false;
this.drawCurrentAndMax(actor.hp, actor.mhp, x - 70, y, width);
};

Window_BattleStatus.prototype.drawBattleActorMp = function(actor, x, y, width) {
width = width || 186;
this.contents.fontBold = true;
this.drawText(TextManager.mpA, x, y, 44);
this.contents.fontBold = false;
this.drawCurrentAndMax(actor.mp, actor.mmp, x - 70, y, width);
};

Window_BattleStatus.prototype.drawItem = function(index) {
var actor = $gameParty.battleMembers()[index];
var rect = this.itemRectForText(index);
this.drawActorFace(actor, rect.x, rect.y + 2);
this.drawActorName(actor, rect.x, rect.y - 6, 150);
this.drawBattleActorHp(actor, rect.x + 0, rect.y + 84, 201);
this.drawBattleActorMp(actor, rect.x + 0, rect.y + 104, 201);
};

Window_BattleStatus.prototype.refresh = function() {
this.contents.clear();
this.drawItems();
};

I've moved this thread to Learning Javascript. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-mv-i-have-a-problem-about-create-window_battlestatus-in-horizontal.133647/