IMPR: Allow extend slide image width/height

This commit is contained in:
Tony Air 2023-08-02 22:35:20 +02:00
parent 6806031931
commit 0d7e238268

View File

@ -82,7 +82,9 @@ class SlideImageEx extends DataExtension
return SliderElement::config()->get('slide_width'); return SliderElement::config()->get('slide_width');
} }
return $element->getSlideWidth(); $w = $element->getSlideWidth();
$this->owner->extend('updateSlideWidth', $w);
return $w;
} }
public function getSlideHeight() public function getSlideHeight()
@ -92,7 +94,9 @@ class SlideImageEx extends DataExtension
return SliderElement::config()->get('slide_height'); return SliderElement::config()->get('slide_height');
} }
return $element->getSlideHeight(); $h = $element->getSlideHeight();
$this->owner->extend('updateSlideHeight', $h);
return $h;
} }
public static function formatBytes($size, $precision = 2) public static function formatBytes($size, $precision = 2)