mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-28 11:04:08 +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]) {
|
||||
$definition->setAutoPanPadding($padding[0]);
|
||||
if (!empty($padding[0])) {
|
||||
$definition->setAutoPanPadding($padding[0]);
|
||||
}
|
||||
} else {
|
||||
if ($padding[0]) {
|
||||
$definition->setAutoPanPaddingTopLeft($padding[0]);
|
||||
|
||||
Reference in New Issue
Block a user