Do not set autoPanPadding when it's empty (fix #29)

This commit is contained in:
David Molineus committed 2015-01-28 09:26:19 +01:00
1 parent a59decd946
commit c1c5173f34
1 file changed
+3 -1
@@ -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]);