update configuration
This commit is contained in:
bovenliggende
88f7f7403a
commit
fbc304aba9
@ -137,8 +137,7 @@ class Configuration
|
||||
$this->addOption(oxNew(Promotion::class, $this->loader));
|
||||
$this->addOption(oxNew(ContextMenu::class, $this->loader));
|
||||
$this->addOption(oxNew(MinHeight::class, $this->loader));
|
||||
//$this->addOption(oxNew(MaxHeight::class, $this->loader));
|
||||
//$this->addOption(oxNew(MaxWidth::class, $this->loader));
|
||||
$this->addOption(oxNew(MaxHeight::class, $this->loader));
|
||||
$this->addOption(oxNew(Menubar::class, $this->loader));
|
||||
$this->addOption(oxNew(ToolbarSticky::class, $this->loader));
|
||||
$this->addOption(oxNew(ToolbarMode::class, $this->loader));
|
||||
|
@ -29,7 +29,7 @@ class MaxHeight extends AbstractOption
|
||||
|
||||
public function get(): string
|
||||
{
|
||||
return '90%';
|
||||
return '500';
|
||||
}
|
||||
|
||||
public function isQuoted(): bool
|
||||
|
@ -34,9 +34,12 @@ class MinHeight extends AbstractOption
|
||||
$profile = (array) Registry::getSession()->getVariable('profile');
|
||||
|
||||
if (array_key_exists(1, $profile)) {
|
||||
return (string) (max($profile[1] * 20, 350));
|
||||
return (string) max(
|
||||
$profile[1] * 20,
|
||||
350
|
||||
);
|
||||
}
|
||||
|
||||
return '350';
|
||||
return "350";
|
||||
}
|
||||
}
|
||||
|
Laden…
Verwijs in nieuw issue
Block a user