update configuration

This commit is contained in:
Daniel Seifert 2024-12-03 09:11:44 +01:00
parent 88f7f7403a
commit fbc304aba9
3 changed files with 7 additions and 5 deletions

View File

@ -137,8 +137,7 @@ class Configuration
$this->addOption(oxNew(Promotion::class, $this->loader)); $this->addOption(oxNew(Promotion::class, $this->loader));
$this->addOption(oxNew(ContextMenu::class, $this->loader)); $this->addOption(oxNew(ContextMenu::class, $this->loader));
$this->addOption(oxNew(MinHeight::class, $this->loader)); $this->addOption(oxNew(MinHeight::class, $this->loader));
//$this->addOption(oxNew(MaxHeight::class, $this->loader)); $this->addOption(oxNew(MaxHeight::class, $this->loader));
//$this->addOption(oxNew(MaxWidth::class, $this->loader));
$this->addOption(oxNew(Menubar::class, $this->loader)); $this->addOption(oxNew(Menubar::class, $this->loader));
$this->addOption(oxNew(ToolbarSticky::class, $this->loader)); $this->addOption(oxNew(ToolbarSticky::class, $this->loader));
$this->addOption(oxNew(ToolbarMode::class, $this->loader)); $this->addOption(oxNew(ToolbarMode::class, $this->loader));

View File

@ -29,7 +29,7 @@ class MaxHeight extends AbstractOption
public function get(): string public function get(): string
{ {
return '90%'; return '500';
} }
public function isQuoted(): bool public function isQuoted(): bool

View File

@ -34,9 +34,12 @@ class MinHeight extends AbstractOption
$profile = (array) Registry::getSession()->getVariable('profile'); $profile = (array) Registry::getSession()->getVariable('profile');
if (array_key_exists(1, $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";
} }
} }