mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 12:03:44 +01:00
Do not set autoPanPadding when it's empty (fix #29)
This commit is contained in:
@@ -80,7 +80,9 @@ class PopupMapper extends AbstractMapper
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($padding[0] === $padding[1]) {
|
if ($padding[0] === $padding[1]) {
|
||||||
|
if (!empty($padding[0])) {
|
||||||
$definition->setAutoPanPadding($padding[0]);
|
$definition->setAutoPanPadding($padding[0]);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($padding[0]) {
|
if ($padding[0]) {
|
||||||
$definition->setAutoPanPaddingTopLeft($padding[0]);
|
$definition->setAutoPanPaddingTopLeft($padding[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user