Skip to content

Commit

Permalink
Update install script
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault committed Jun 21, 2023
1 parent bfb43d6 commit db114bc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions install/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -762,10 +762,9 @@ protected function createMiniDashboardBigNumbers() {
];

// With counters
$x = 2;
$w = 3; // Width
$h = 1; // Height
$s = 1; // space between widgets
$x = 0;
$w = 4; // Width
$h = 2; // Height
$y = 0;
foreach ($cards as $key => $options) {
$item = new Dashboard_Item();
Expand All @@ -778,7 +777,7 @@ protected function createMiniDashboardBigNumbers() {
'height' => $h,
'card_options' => array_merge($commonOptions, $options),
]]);
$x += ($w + $s);
$x += $w;
}

$this->addRightsToMiniDashboard($dashboard->fields['id']);
Expand Down

0 comments on commit db114bc

Please sign in to comment.