Issue #3363127 by nod_, Gábor Hojtsy, mherchel: Drupal Displace outputs invalid value for --drupal-displace-offset-right when opening top dialog

merge-requests/8783/merge
nod_ 2024-07-31 11:34:45 +02:00
parent c56ebfb743
commit 3401675c3f
No known key found for this signature in database
GPG Key ID: 76624892606FA197
1 changed files with 2 additions and 0 deletions

View File

@ -287,6 +287,7 @@
`${width}px`;
$container.attr(`data-offset-${Drupal.offCanvas.getEdge()}`, width);
$container.attr('data-offset-top', 0);
displace();
}
@ -294,6 +295,7 @@
if (position === 'top') {
mainCanvasWrapper.style.paddingTop = `${height}px`;
$container.attr('data-offset-top', height);
$container.attr(`data-offset-${Drupal.offCanvas.getEdge()}`, 0);
displace();
}
},