Issue #3363127 by nod_, Gábor Hojtsy, mherchel: Drupal Displace outputs invalid value for --drupal-displace-offset-right when opening top dialog
parent
c56ebfb743
commit
3401675c3f
|
@ -287,6 +287,7 @@
|
||||||
`${width}px`;
|
`${width}px`;
|
||||||
|
|
||||||
$container.attr(`data-offset-${Drupal.offCanvas.getEdge()}`, width);
|
$container.attr(`data-offset-${Drupal.offCanvas.getEdge()}`, width);
|
||||||
|
$container.attr('data-offset-top', 0);
|
||||||
displace();
|
displace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -294,6 +295,7 @@
|
||||||
if (position === 'top') {
|
if (position === 'top') {
|
||||||
mainCanvasWrapper.style.paddingTop = `${height}px`;
|
mainCanvasWrapper.style.paddingTop = `${height}px`;
|
||||||
$container.attr('data-offset-top', height);
|
$container.attr('data-offset-top', height);
|
||||||
|
$container.attr(`data-offset-${Drupal.offCanvas.getEdge()}`, 0);
|
||||||
displace();
|
displace();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue