Allow others (widget) preview to render pixel width
This commit is contained in:
committed by
Veljko V
parent
e0545c48a3
commit
481508724c
@@ -39,6 +39,11 @@ jQuery(($) => {
|
|||||||
formElement.css('width', `${width.value}${unit}`);
|
formElement.css('width', `${width.value}${unit}`);
|
||||||
} else {
|
} else {
|
||||||
previewForm.css('width', `${width.value}${unit}`);
|
previewForm.css('width', `${width.value}${unit}`);
|
||||||
|
if (unit === 'px') { // Update others container width to render full pixel size
|
||||||
|
$('#mailpoet_widget_preview #sidebar').css('width', `${width.value}${unit}`);
|
||||||
|
} else { // Reset container size to default render percent size
|
||||||
|
$('#mailpoet_widget_preview #sidebar').css('width', null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ajdust others (widget) container
|
// Ajdust others (widget) container
|
||||||
|
Reference in New Issue
Block a user